WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Replace text navigation with image buttons?? (4 posts)

  1. septemous
    Member
    Posted 4 years ago #

    Hello world :0

    I would like to replace the text versions of the previous/next page links to image buttons.

    Our URL is: http://www.ablogvoyage.com/

    the code I have is:

    <div class="navigation">
       <div class="alignleft"><?php next_posts_link('&laquo; Next page') ?></div>
       <div class="alignright"><?php previous_posts_link('Previous page &raquo;') ?></div>
    </div>

    I would like to have /images/next.png & /images/previous.png instead of the « Next page & Previous page »

    Is this possible?

    thanks again for your time
    S_

  2. nglavin
    Member
    Posted 4 years ago #

    <div class="alignleft"><?php next_posts_link('<img src="/images/next.png" alt"next"/>') ?></div>

    note you will probably have to use the full image path rather than just /images/next.png

    think that will work any way

  3. ClaytonJames
    Member
    Posted 4 years ago #

  4. septemous
    Member
    Posted 4 years ago #

    thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic