This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

How to display an apostrophe on button and page?

  • Creator
    Topic
  • #23443
    antoniamar
    Participant

    Hi,
    I get backslashes in words using an apostrophe. I am seeing this on my button and in the promo box, although I don’t see that problem with text used in the icon box. How can I get rid of the slash and just keep the apostrophe?
    Thanks.

    • This topic was modified 7 years, 7 months ago by antoniamar.
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #23448
    Jason Bobich
    Keymaster

    Hello,

    This is actually an issue with the PHP you have installed on your server and something called “magic quotes,” which was a short lived thing in PHP and caused quite a lot of controversy back in the day (you can google more about it). So anyway, this means you’ve most likely got PHP 5.2 installed on your server. This is the absolute minimum supported by WordPress, however they recommend you have at least PHP 5.6.

    https://wordpress.org/about/requirements/

    There are two things you can do to avoid this issue. Inevitably you’re going to run into this issue with other plugins and themes in the future, if not addressed.

    1. You can contact your host and ask them to upgrade your plan to a more modern version of PHP. It’s extremely rare that you come across hosting now that would still have PHP 5.2. It’s been a really long time since I’ve talked to anyone about magic quotes! 🙂

    2. Or, at the very least you can contact your host and just ask them to disable magic_quotes_gpc on your installation of PHP. You can also do this yourself if you have access to your server’s PHP ini file. But if this is new info to you, it’s probably easiest just to contact your web hosting support and ask them to do it. This will get you by, for time being. But I would still look into getting on a plan with a more modern version of PHP.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.