Forums

Removing Previous/Next text? (3 posts)

  1. gbadner
    Member
    Posted 4 months ago #

    I'm new to WP and not very good at PHP so this may be a simple fix...

    I created graphical buttons for my previous/next page navigation. The buttons show up and work fine, but I cannot seem to get rid of the HTML previous/next text. It sits over my buttons and leaves them unreadable. How can I remove this text so that the links are purely graphical?

    Here's a link. The buttons are at the top of the post:
    http://chronictriathlete.com/wordpress/m%D0%BE%D0%BB%D0%BE%D0%B4%D0%B5%D1%86-menchov

    The template code is:
    <div class="page-navigation">
    <div class="alignleft">
    <?php previous_post('%','Previous article', 'no'); ?>
    </div>
    <div class="alignright">
    <?php next_post('%','Next article', 'no'); ?>
    </div>
    </div>

    Thanks!

  2. equaldesign
    Member
    Posted 4 months ago #

    Take a look here as I am pretty sure that you can customize the text that WordPress brings back.

    http://codex.wordpress.org/Template_Tags/previous_post_link

  3. t31os_
    Member
    Posted 4 months ago #

    Not sure this will work, but try switching these..

    <?php previous_post('%','Previous article', 'no'); ?>
    <?php next_post('%','Next article', 'no'); ?>

    For..

    <?php previous_post('%','&nbsp;&nbsp;', 'no'); ?>
    <?php next_post('%','&nbsp;&nbsp;', 'no'); ?>

    Which (if it works), will replace the text for 2 blank spaces, effectively hiding the text..

    Alternatively it could a simple matter of using a little CSS to just give those elements a negative text indent or setting the font size to 0..

Reply

You must log in to post.

About this Topic