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 5 months, 1 week ago.

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

    lovebugs
    Participant

    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

    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

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

    #114396

    braddalton
    Participant
    #114414

    Genesis Developer
    Participant

    try this once

    add_action( 'genesis_after_post', 'genesis_prev_next_post_nav' );


    Coming Soon: Simple PRO Genesis Themes
    Need customization help for Genesis Websites, contact me | Checkout my PRO Genesis Child Theme .

    #114467

    lovebugs
    Participant

    thanks! That worked perfectly.

    #114471

    lovebugs
    Participant

    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

    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

    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.