My more link image code needs cleaning up.
-
I’m using an image instead of text for my more link.
I went here and tried what they said, which didn’t work:
<?php the_content('Read more...<img src="' . bloginfo('template_directory'). '/images/leaf.gif" alt="read more" title="Read more..." />'); ?>
This works, but needs the full path from the root:
<?php the_content(__('<p class="more-line"><img src="/natestest/wp-content/themes/journalist/images/morelink.png" alt="read more" title="Read the rest of this article..." /></p>')); ?>
Apparently, template_directory is depreciated?
What do I use to point to the themes images folder?
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘My more link image code needs cleaning up.’ is closed to new replies.