Support » Theme: Frontier » Revert back to old post navigation

  • Resolved Ashutosh

    (@ashubetta)


    Hi Ron, I just updated to Frontier 1.1.3 from your website, and am noticing that the post navigation links have changed from the actual post titles to “Next post” and “Previous post”. Is there any way to switch back to the old format?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author ronangelo

    (@ronangelo)

    You could either delete the new one then re-upload version 1.1.1 or just replace the lines inside <div class="post-nav"> on loop-single.php

    Get files here.
    http://wordpress.org/themes/frontier/developers/

    Theme Author ronangelo

    (@ronangelo)

    Update:

    Ive added a filter on the next update to make this easier. You can get it now here

    On your child theme functions.php

    function custom_post_nav() {
    	$post_nav_single =  '<div class="link-prev">' . get_previous_post_link('← %link') . '</div>';
    	$post_nav_single .= '<div class="link-next">' . get_next_post_link('%link →') . '</div>';
    	return $post_nav_single;
    }
    add_filter( 'frontier_post_nav_single', 'custom_post_nav' );

    You’ll still have to override some css if you want to remove the box effect on the post nav.

    Thread Starter Ashutosh

    (@ashubetta)

    Thanks for the update, Ron! I am fine with the box shadow, but want to remove the border. .post-nav {border: none;} doesn’t seem to do the trick. Am I missing something? Also, will you be pushing 1.1.3 through the WordPress updater anytime soon?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Revert back to old post navigation’ is closed to new replies.