StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-08-2012, 08:23 AM
Tarki Tarki is offline
Registered User
Pro Plus Member
 
Join Date: Jul 2011
Posts: 4
Default Single post navigation customisation

Hello all,

I've added the following to functions.php of my child theme and now I've single post navigation which is great. I'd like to put a text with a link to a specific page in the middle of "previous" and "next" links though. What should I add/change in the following code?

/**next previous post */
add_action('genesis_after_post_content', 'test_single_nav', 20);
function test_single_nav() {
if( is_single() ) {
echo '<div id="single-navigation" class="navigation">';
echo '<span class="alignleft">';
previous_post_link();
echo '</span>';
echo '<span class="alignright">';
next_post_link();
echo '</span>';
echo '</div>';
}

Thank you very much in advance and regards,
Tarki
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:53 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.