Your Time:
Our Time:
← Back to discussions

blog page edits

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 6 replies, 2 voices, and was last updated 10 years, 2 months ago by Anonymous.

  • 2016-06-29 at 2:53 am
    Support Expired
    #15190
    ember7
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 25

    I need some help with some tweaks on my main blog page. First, I notice there is no Prev/Next navigation at the bottom of the page. Do I need to add code to the template_blog.php page? (https://codex.wordpress.org/Next_and_Previous_Links)

    I also would like to edit out some of the meta data, specifically the author, category, and comments on the main blog page, as well as the individual post pages. All I need to show is the date. Is there a way to do that? I cannot find it in the code.

    Thanks!

    2016-06-29 at 3:09 am
    Support Expired
    #15191
    ember7
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 25

    One thing I forgot: I’m also not able to choose any sidebars on the posts pages. Under “Custom Sidebars” on the post page, none of them are showing as available.

    I’d actually rather set that globally, but can’t find a place to do so. Is there a way to do that?

    2016-06-29 at 11:53 am
    #15197
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    1. Prev/Next navigation: It’s there in single blog page. You will see under each single blog page like this as mentioned in the screenshot.

    2. If you want to display only date, then go to atp_generator.php file and search for this function “postmetaStyle” and do comment the post meta which you don’t to display on the blog page.

    // P O S T   M E T A   D A T A 
    //--------------------------------------------------------
    function postmetaStyle() {
    	global $format;
    	ob_start();
    	$out = ''; 
    	echo '<span class="post-meta"><i class="icon-calendar"></i>';
    	the_time("M j, Y"); 
    	echo '</span>';
    	//echo '<span class="post-meta"><i class="icon-user"></i>';
            //the_author_posts_link(); 
    	//echo '</span>';
    	//echo '<span class="post-meta"><i class="icon-inbox"></i>';
    	//the_category(', ') ; 
    	//echo '</span>';
    	//echo '<span class="post-meta"><i class="icon-comment"></i>';
    	//comments_popup_link( __( '0 Comment', 'THEME_FRONT_SITE' ), __( '1 Comment', 'THEME_FRONT_SITE' ), __( '% Comments', 'THEME_FRONT_SITE' ) );
    	//echo '</span>';
    	$out .= ob_get_clean();
    	return $out;;
    }

    3. Add this line $sidebarwidget = get_option('atp_customsidebar'); in post-meta.php file on line no #6 after global $sidebarwidget; like this,

    $prefix = '';
    global $sidebarwidget;
    $sidebarwidget = get_option('atp_customsidebar');
    2016-06-29 at 8:56 pm
    Support Expired
    #15202
    ember7
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 25

    In regards to the Prev/Next navigation, I am aware it’s available in the single blog page, but as I said I want to show the Prev/Next navigation on the MAIN blog page. It only shows the number of posts (10) I choose in the Settings/Reading, then stops. I want the user to be able to click NEXT to go to the next or previous 10 posts.

    Thanks for the other fixes, they worked. On the sidebar fix, is there anyway to force a specific sidebar to show on all individual posts? This is a site I’m upgrading, and they have years of posts already. Would love for the posts to be consistent, without having to edit each past post.

    Thanks again.

    2016-06-30 at 12:26 pm
    #15211
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    1. Prev/Next Navigation: Follow this path linofeast/template_blog.php and find for this code

    <?php
    if(function_exists('atp_pagination')) { 
    	atp_pagination(); 
    } ?>

    replace this code with,

    <?php
    if(function_exists('atp_pagination')){ 
    	echo atp_pagination(); 
    }?>

    After that set upto 5 posts in Settings/Reading/Blog pages show at most.

    2. Yes, you can set a specific sidebar to show on all individual posts by going to Appearance/WidgetsMain Sidebar and drag some widgets in to main sidebar. Have a look at the screenshot.

    2016-07-01 at 9:47 am
    Support Expired
    #15225
    ember7
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 25

    That did the trick, thanks!

    2016-07-01 at 10:14 am
    #15227
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    If you have not yet given ratings to the theme, kindly please give to the theme by going to your themeforest account downloads section and below the Download button of the theme you can find the stars to click on for ratings 🙂

You must be logged in to reply to this topic.