Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #631057

    Hi,

    Is there a way of making the text box not convert single quotes in links to double quotes? The reason I am asking is, that I am using a short code for an accordion. If I add a link to the text then the accordion stops working. I was told by the plugin supplier to use single quotes for the links.

    I did some research and found some reference that said to add the following line to the functions.php file:
    remove_filter (‘the_content’, ‘wptexturize’);

    Now this works when I save it the first time. But as soon as I go back into the page editor and click on the text box it converts all the link quotes back to ” double quotes.

    Is there any way I can prevent this from happening? Because it makes the accordion stop working.

    katjafrueh.ch

    Thanks so much & kindest Regards,
    Corina

    • This topic was modified 8 years, 6 months ago by cd2s.
    #632287

    Hey cd2s,

    Thank you for using Enfold.

    Try to use the html entity version of the single quotes symbol: https://dev.w3.org/html5/html-author/charref

    Or edit the element once, save it as a template then leave it as it is.

    Best regards,
    Ismael

    #635025

    Thank you Ismael.
    Unfortunately that doesn’t work either “using HTML entity”. I will just have to redo the double quotes to single quotes every time we have to make changes on the website. Just thought maybe there is a simple solution to this.

    Thanks so much for taking the time to look at it.
    Have a great day & kindest Regards,
    corina

    #635678

    Hi,

    Sorry for the inconvenience. We’ll investigate the issue further and provide an update if we find anything. Thanks for understanding.

    Best regards,
    Ismael

    #635728

    Hi Ismael

    Thanks so much. It’s not a big problem… since it is a small website it is doable… but might be interesting for someone else who has a bigger website. Thanks for your always so prompt and amazing support. I really appreciate it.

    Have a great day & kindest Regards,
    Corina

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Textbox converting single quotes in links to double quotes’ is closed to new replies.