Forum Replies Created
-
AuthorPosts
-
savannahchikMember
ok I'm not quite sure what you're suggesting (I'm still new to Genesis).
- I don't have a post.php for my child theme.
- Should I just create a new one and only have the one function in there?
- I think it will have the same code I pasted above, but in the child theme's post.php
Did I get that right?
savannahchikMemberi didn't realize i had access to those variable in post.php! i just reversed my changes and did what you quoted in post.php and it worked like a charm - thank you!
savannahchikMemberThanks for giving me the function name to look for!
After getting this response i tried updating next_post_link but i was unsuccessful. Having the call though, I was able to find this post that helped me out. Specifically (in case anyone else needs it), I added a few lines to functions.php
function genesis_post_navigation() { if ( is_single ( ) ) { ?> <div id="prev-next"> <div class="prev-link">← <?php previous_post_link('%link', '%title', TRUE); ?> </div> <div class="next-link">→ <?php next_post_link('%link', '%title', TRUE); ?> </div> </div> <?php } } add_action('genesis_before_comments', 'genesis_post_navigation');
and then styled it in style.css
This puts the prev/next links between the post and the comments (because i used the genesis_before_comments hook). I played around with where it worked and this felt the best for my site.
Thanks again for your help - having the function name saved me A LOT of searching and reading!
-
AuthorPosts