WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
[resolved] Post Navigation (4 posts)

  1. BusyBrandi
    Member
    Posted 1 year ago #

    I would like to know how to edit the post/page navigation. I would like for it to say "Next" and "Previous" instead of the title of the next/ previous post. Any suggestions would be greatly appreciated. Here is a picture of the post navigation i currently have

    Thanks!

  2. mareksgregs
    Member
    Posted 1 year ago #

    You'll have to edit Buddypress Default for that.

    Log in your Admin Dashboard.
    Go to Appearance - > Editor -> Buddypress Default
    Open Single Post (single.php)

    Look for,

    <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div>
    						<div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
    					</div>

    and replace it with,

    <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'buddypress' ) . '</span> Previous' ); ?></div>
    						<div class="alignright"><?php next_post_link( '%link', 'Next <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
    					</div>
  3. BusyBrandi
    Member
    Posted 1 year ago #

    That worked Perfect!! Thanks a ton :)

  4. angslycke
    Member
    Posted 1 year ago #

    This works but will be overwritten when you upgrade BuddyPress or your theme. It might be wiser to "translate" the string using a plugin or PO Edit even though this isn't really a translation but rather a customisation. That way the change will stay if you keep your translation files (.po and .mo file). Read more here:

    http://codex.wordpress.org/Translating_WordPress

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic