Adding previous/next to the bottom of single post pages

Community Forums Forums Design Tips and Tricks Adding previous/next to the bottom of single post pages

This topic is: not resolved

This topic contains 8 replies, has 4 voices, and was last updated by  mystylevita 3 weeks, 5 days ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #114034

    lovebugs
    Participant
    Post count: 9

    I have the code that I added using simple hooks to the space for after post content:

    <div class="navigation">
    <div class="alignleft">
    <?php previous_post('&laquo; &laquo; %',
    'Toward The Past: ', 'yes'); ?>
    </div>
    <div class="alignright">
    <?php next_post('% &raquo; &raquo; ',
    'Toward The Future: ', 'yes'); ?>
    </div>
    </div>
    
    <center><img src="http://karenard.com/blog/wp-content/uploads/2013/08/flowerdivider3.jpg"></center>

    it did what I wanted it to do, but it also added it to the home page. Is there a way to turn it off on all pages except single post pages?

    thanks!

    http://karenard.com/blog
    #114045

    braddalton
    Participant
    Post count: 10217

    No need to use that code.

    Simply add this to your functions file

    add_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );
    

    Only works on HTML 5 themes


    #114392

    lovebugs
    Participant
    Post count: 9

    i don’t think prose is an HTML 5 theme though – I tried adding this but nothing happened.

    #114396

    braddalton
    Participant
    Post count: 10217
    #114414

    genwrock
    Member
    Post count: 673

    try this once

    add_action( 'genesis_after_post', 'genesis_prev_next_post_nav' );


    See My PRO Genesis Child Themes | Customizing & Creating Genesis Website | Follow Me on Twitter

    #114467

    lovebugs
    Participant
    Post count: 9

    thanks! That worked perfectly.

    #114471

    lovebugs
    Participant
    Post count: 9

    Is there a way to center this, or have the right side one aligned right? It doesn’t look quite right:

    http://karenard.com/blog/los-angeles-maternity-photography-2/

    #125857

    mystylevita
    Member
    Post count: 3

    I just added this code and it works, but not sure how to edit it to make it larger. Also looking to add my long grey separator line below the tags and categories, to allow for the next/prev posts. Any ideas?

    #125858

    mystylevita
    Member
    Post count: 3

    And when I add //* Customize ….. (filled in some stuff here) my entire site went blank and can’t even load it or the admin panel…

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.