WordPress.org

Ready to get started?Download WordPress

Forums

Images as "next"/"previous" (4 posts)

  1. Casparm
    Member
    Posted 7 years ago #

    I want to change the default next/previous text links to images that illustrates the same. In the codex (http://codex.wordpress.org/Template_Tags/posts_nav_link) it's shown how to use textlinks, but there's no mention about how to do the same with images.

    Caspar
    (pardon my norwegian-english)

  2. moshu
    Member
    Posted 7 years ago #

    I don't know of any plugin that does that (which doesn't mean it doesn't exist...)
    There is a plugin for the next/prev POST which is used in the single post view:
    http://guff.szub.net/2005/01/18/next-previous-post-img/

  3. newflesh
    Member
    Posted 7 years ago #

    I found this example on that codex page:
    <?php posts_nav_link(' ', '<img src="images/prev.jpg" />', '<img src="images/next.jpg" />'); ?>

    Maybe I misunderstood you, or you're a bit too fast on the scroll wheel. :)

  4. faustina
    Member
    Posted 7 years ago #

    <div class="alignleft"><?php next_posts_link('<img src="http://www.your image.jpg" alt="Previous Page"/>') ?></div>
    <div class="alignright"><?php previous_posts_link('<img src="http://www.yourimage.jpg" alt="Next Page"/>') ?></div>

    This is what my navigation code looks like as I use images for some of my buttons

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags