• 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)
  • <?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.

    Thread Starter venky_rs

    (@venky_rs)

    That worked perfectly for me!!
    Thanks a lot Kafkaesqui

    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.