WordPress.org

Ready to get started?Download WordPress

Forums

Can I use image file for more.. tag (4 posts)

  1. lse12
    Member
    Posted 8 years ago #

    Hi.

    I want to use image file instead of "read more..."text.

    How can I use it.. How I must modify following code..

    <?php the_content("Continue reading ".the_title('', '', false)."..."); ?>

    Thank you.

  2. VaamYob
    Member
    Posted 8 years ago #

    I quick peek at the code and it's simply doing a:

    $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>";

    So you should be able to do something like:

    <?php the_content('<img src="my_more.png"/>'); ?>

  3. lse12
    Member
    Posted 8 years ago #

    Thank you..
    one more question..

    Now How can I input the themplates_directory url =

    <?php bloginfo('template_directory'); ?>

    in <img src="my_more.png"/>

    it is not working.

    <img src="<?php bloginfo('template_directory'); ?>/my_more.png"/>

  4. VaamYob
    Member
    Posted 8 years ago #

    You can try:

    <?php the_content('<img src="'.bloginfo('template_directory').'/my_more.png"/>'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags