Forums

Customizing the 'Read More' link in WP Framework (2 posts)

  1. doozy1117
    Member
    Posted 1 year ago #

    I am using WP Framework and am trying to use an image as the "read more" link.

    I have the code, but do not know where to place it.

    This is the code I have:
    <?php the_content('Read more...<img src="' . bloginfo('template_directory'). '/images/leaf.gif" alt="read more" title="Read more..." />'); ?>

    Thank you!

  2. MAS
    Member
    Posted 1 year ago #

    <?php
    $img = '<img src="' . bloginfo('template_directory'). '/images/leaf.gif" alt="read more" title="Read more..." />';
    
    the_content($img);
    
    ?>

    or

    <?php the_excerpt();
     echo '<img src="' . bloginfo('template_directory'). '/images/leaf.gif" alt="read more" title="Read more..." />';
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic