• Resolved dubdesign

    (@dubdesign)


    At the moment this is my “read more” code:
    <?php the_content('Read more on: '.the_title('', '', false)."..."); ?>

    My goal is to have a little image before the “Read more on:” part.
    I want a little arrow image before the text – it doesn’t necessarily have to link as well as the text.

    I did read the WordPress documentation on adding an image, but because my php knowledge is that limited I can’t apply adding an image to my specific code.

    I have managed to get the image in there on a few occasions but alas, it didn’t display the ‘read more’ text correctly (it only showed the image.)

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use this code
    <?php the_content('Read More...<img alt="ler mais" src="https://blog.wilson.com.pt/wp-content/uploads/2007/05/lermais.PNG"/>'); ?>

    Change this code in you index.php file

    Thread Starter dubdesign

    (@dubdesign)

    Yeah… as said, I did read the wordpress docs on this and saw the above code too… but what I have problems with, is getting an image into my specific code. (ie. with the ‘title parameter’ in there too – and not just like it is in the example, without the parameter)

    Also, I would like it that the image doesn’t link, I would like that it’s next to the ‘more’ link, without actually linking itself.

    Again, my ‘more’ code:

    <?php the_content('Read more on: '.the_title('', '', false)."..."); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image read more’ is closed to new replies.