Why is wordpress adding extra quotes to my code?
Why is wordpress adding extra quotes to my code?
I've been struggling with this all morning. I'm using wordpress and Avada, and suddenly, when I put in code, it automatically adds extra quotes when the page outputted.
So if I use the code block element and type:
<span style="color:yellow;">Test</span>
it outputs as:
<span style="”color:yellow;”">Test</span>
I have no idea why it's doing it. I try typing it out, I try pasting from Notepad and other editors.
<span style="”color:yellow;”">Test</span>
I have no idea what you're trying to tell me with this link. I don't know enough about php and this seems relating to building plug ins? I'm writing simple code. It was working fine before I updated my theme? Why would the theme cause something like this?
– mpeterson
Feb 16 '17 at 18:55
I still don't think this is the problem. it's not converting my quotes, its adding new ones. I've tried adding plug ins and adding in those snipets and they don't do anything
– mpeterson
Feb 17 '17 at 0:10
I noticed that those are the curly double quotes. I tried it in one of my client sites and I don't get the same results. You might try disabling some plugins and see if the effect goes away.
– Cooper
Feb 17 '17 at 0:26
I tried all plug ins disable except for the Fusion Builder and I enabled that and they were there. But the fusion builder is what create the layout for my pages.
– mpeterson
Feb 17 '17 at 16:16
2 Answers
2
I encountered the same problem with Wordpress 4.7.4 and Avada 5.1.5. Apparently this is bug in Avada Code Block element and so far my only solution is to remove all double quotes entirely.
This is my code inside the Code Block:
<iframe width=100% height=400 frameborder=0 src=https://www.google.com/maps/embed/v1/streetview?key=my-google-API-key&location=52.4943894,5.0766594&heading=210&fov=100 allowfullscreen></iframe>
And this is the rendered version in html (Avada added the quotes):
<iframe width="100%" height="400" frameborder="0" src="https://www.google.com/maps/embed/v1/streetview?key=my-google-API-key&location=52.4943894,5.0766594&heading=210&fov=100" allowfullscreen=""></iframe>
I will have to see if that works, I seem to remember trying that and I'm not sure it worked for me or not. Thank you.
– mpeterson
Apr 28 '17 at 15:16
This may occur due to the hash symbol before 'yellow'. See https://www.w3schools.com/tags/tag_span.asp for reference.
That's my bad on this post. I'm editing it now because that is not the issue. my original code didn't have that
– mpeterson
Feb 16 '17 at 18:46
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
stackoverflow.com/questions/8949768 and trickspanda.com/remove-curly-quotes-wordpress
– user7003859
Feb 16 '17 at 18:48