Support » Themes and Templates » Displaying GIF buttons for “Previous Entries” and “Next Entries”

  • venky_rs

    (@venky_rs)


    In my website, I want to display GIF buttons instead of just plain text links for “Previous Entries” and “Next Entries”.

    These links are generated by “next_posts_link() & previous_posts_link()” tags in category.php

    Is there a way to display GIF buttons?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kafkaesqui

    (@kafkaesqui)

    <?php next_posts_link('<img src="/images/nextpost.gif" alt="Next Entries" />'); ?>

    Just make sure the path to the image(s) is correct. If the graphics reside in an images directory under your theme’s, use this:

    <?php next_posts_link('<img src="' . get_bloginfo('template_url') . '/images/nextpost.gif" alt="Next Entries" />'); ?>

    May also want to add width and height attributes to the img tag.

    venky_rs

    (@venky_rs)

    That worked perfectly for me!!
    Thanks a lot Kafkaesqui

    red-star

    (@red-star)

    Why not shere the result 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying GIF buttons for “Previous Entries” and “Next Entries”’ is closed to new replies.