WordPress.org

Ready to get started?Download WordPress

Forums

Frontier
[resolved] Revert back to old post navigation (4 posts)

  1. Ashutosh
    Member
    Posted 7 months ago #

    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.

  2. ronangelo
    Member
    Theme Author

    Posted 7 months ago #

    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/

  3. ronangelo
    Member
    Theme Author

    Posted 7 months ago #

    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.

  4. Ashutosh
    Member
    Posted 7 months ago #

    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?

Reply

You must log in to post.

About this Theme

About this Topic