• Resolved Angelos Kyritsis

    (@angelos-kyritsis)


    My wordpress site has this annoying problem: it converts the single quotes (e.g. it’s) into double quotes (it”s) and it looks bad.

    For example, look at the title of this post: https://www.pcsteps.gr/1408-lost-gigabytes/

    I have searched long and hard about this.

    I have read about php.ini and the magic quotes parameter, but it is already off on my server (and every other thing that has to do with magic quotes)

    I have commented the wp_magic_quotes(); line on wp-settings.php but it changed nothing.

    I have found some 6+ years old posts here on the wordpress forums that reference plugins that don’t exist anymore and changes on wordpress files that also don’t exist.

    Any help will be greatly appreciated.

    Thanks

    Angelos

Viewing 1 replies (of 1 total)
  • Thread Starter Angelos Kyritsis

    (@angelos-kyritsis)

    Hey, what do you know? I post a question that has been troubling me for days, and 20 minutes later I find the answer.

    If you have this problem, try adding these lines in the function.php file of your theme or child-theme

    //Remove from Post Content
    remove_filter('the_content', 'wptexturize');
    //Remove from Post Title
    remove_filter('the_title', 'wptexturize');
    //Remove from Post Excerpt
    remove_filter('the_excerpt', 'wptexturize');
    //Remove from Post Comments
    remove_filter('comment_text', 'wptexturize');
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress changing single quotes to double quotes in title and content’ is closed to new replies.