Forums

Customizing "Continue reading [post]" with image is not functioning (9 posts)

  1. robfbms
    Member
    Posted 1 year ago #

    I'm trying to customize the "Continue reading [post name]" link by replacing it with an image, but, whatever I do, it's not functioning.

    My blog is http://consciencia.blog.br and its theme is Lightword.

  2. t-p
    Member
    Posted 1 year ago #

  3. robfbms
    Member
    Posted 1 year ago #

    t-p, that didn't function.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    In what way didn't it work?.

  5. robfbms
    Member
    Posted 1 year ago #

    Please check the code of the_content:

    <?php the_content('<img src="http://consciencia.blog.br/wp-content/themes/lightword/images/leiamais.gif" alt="read more" title="Read more..." />'); ?>

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  7. robfbms
    Member
    Posted 1 year ago #

    esmi, I already tried this, but the only thing I've got was a "http://consciencia.blog.br/wp-content/themes/lightword" written on the top of each post and no image.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Sorry - my bad. Try:

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

  9. robfbms
    Member
    Posted 1 year ago #

    This is not different.

Topic Closed

This topic has been closed to new replies.

About this Topic