• Hi,
    When I try to replace text with << >> it shows only the first one and after click it doesn’t change to the other one.

    What can be wrong?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author George Gkouvousis

    (@gkouvousisg)

    You are probably using “ instead of ” .
    Please take a closer look at the difference of these two characters and feel free to copy/paste the correct one directly: “

    Thread Starter budax

    (@budax)

    Thank for reply, but ” or “ are not an issue.
    Text is working without them like this: [read more=asd less=dsa]
    But when I try to do this: [read more=>> less=<<] or [read more=”>>” less=”<<“] still doesn’t work.
    Here is the issue: https://wojbaran.webd.pl/budyn/adam/zespol/
    You can even try to change this with web-developer tools.

    Plugin Author George Gkouvousis

    (@gkouvousisg)

    Im not sure if I get you in full.

    Just did a test with dev tools and seems fine for me: https://prntscr.com/dkqab8

    Is this what you are trying to achieve?

    Thread Starter budax

    (@budax)

    No,
    I want to have >> and << as add more/less button.
    But when I click to >> it doesn’t change to <<, just stay the same.

    Plugin Author George Gkouvousis

    (@gkouvousisg)

    Oh, I can get you now.

    Well you are trying to include a character in the editor tha gets converted to an HTML character in the source. Unfortunately, this is not possible.

    It would be only if you enter the shortcode like this: [read more] and do the proper modifications to the plugin’s PHP code (specifically on line 45 of index.php), but this is a mod you must do on your own since it goes beyond the level of support I can provide for this plugin.

    There are so many needs out there. Different webmasters use this plugin to achieve different things and its not really possible to support them all in full.

    Thanks for your understanding.

    Thread Starter budax

    (@budax)

    Thanks for exchange of information.
    Have a nice day and keep up good work!

    Thread Starter budax

    (@budax)

    Yay! I’ve done it ??
    Just change: addslashes($less) and addslashes($more) to htmlspecialchars($less) and htmlspecialchars($more) in index.php of this plugin.

    Have a nice day!

    Plugin Author George Gkouvousis

    (@gkouvousisg)

    More than glad that you sorted it out. Im pretty sure that your answer will help other users in the future.

    Have a good one too,

    I, too experienced this issue. However, in order to make things work, I simply used the « (left double angle quotes) and » (right double angle quotes) special HTML characters instead of two < or two > characters. Just for “kicks” I backed up and tried the OP’s solution for editing the plugin’s index.php file, and that didn’t work for me. There seems to be some underlying special significance attached to the “less than” and “greater than” individual characters that messes things up.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Changing Read more text to “>>” and Read less to “<<"’ is closed to new replies.