Page 1 of 1

Read More to image

Posted: Sat Nov 20, 2021 9:29 pm
by dart
I would like to change the [Read More...] output to an 'image png'.
Any advice before I make the attempt ?

I think this is where the change should go...

line 71 - readmore.php

Code: Select all

if (($q && $q->single) || isset($fp_params ['entry'])) {
		$string = str_replace('[more]', "<a id=\"readmore-{$fp_params['entry']}\"></a>", $string);

Re: Read More to image

Posted: Sun Nov 28, 2021 12:50 pm
by Arvid
Hi,

to change the output to an image gerenally, simply edit line 39 of fp-plugins/readmore/plugin.readmore.php to this:

Code: Select all

$readmoreString = '<img src="path/to/your/image.png" title="' . $lang ['plugin'] ['readmore'] ['readmore'] . '" alt="' . $lang ['plugin'] ['readmore'] ['readmore'] . '" />';

The alt and title attribute hold the "read more" phrase in your selected language, so it is shown on mouseover (title) and if the image cannot be loaded (alt).

Be sure to backup the file before changing anything, so you can go back anytime if something goes wrong.

All the best,
Arvid

Re: Read More to image

Posted: Sun Nov 28, 2021 3:00 pm
by dart
Thanks Arvid ! :D
It gives the posts a whole new look.