Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #181548

    Hi,

    I don’t know why but, it’s fine everywhere else but WP keeps escaping quotes for headers. And I can’t get rid of this problem. For example :
    <h3 style="\"text-align:" center;\">Lorem Ipsum</h3>
    If I switch <h3> to a <p> everything is ok. The problem is only with headers… :(

    I tried php_value magic_quotes_gpc 0 and php_flag magic_quotes_gpc Off in .htaccess, but that didn’t change anything.

    Can someone help me please ?

    thx

    #181959

    Hey xilopix!

    
    <h3 style="\"text-align:" center;\">Lorem Ipsum</h3>
    

    doesn’t seem to be a valid css syntax for me. If you want use css inline styles you don’t need to add quotes to the css attributes like “text-align:” but you just write

    
    <h3 style="text-align:center;">Lorem Ipsum</h3>
    

    Regards,
    Peter

    #182927

    LOL, maybe I didn’t explain properly.

    Of course, i write
    <h3 style="text-align:center;">Lorem Ipsum</h3>

    But wordpress changes it to
    <h3 style="\"text-align:" center;\">Lorem Ipsum</h3>

    What I want to know is why. And how to stop it.

    #183259

    Hi!

    Do you have the latest version of Enfold? I think Kriesi fixed this on the latest updates of the theme.Can you please give us a link to the website? Deactivate all your plugins then test it on another browser. I tested this on my end and it doesn’t produce any backslashes on the code.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Magic Quotes escapes headers H1, H2, H3…’ is closed to new replies.