Archived topic
Text Editor Stripping Content?
4 replies · Started by Daniel on June 23, 2020
Hey there. We have tag pages that present stock quotes to readers. Under the tag description on our old site, this is what we have for example:
<div class="qtool" data-qmod-tool="detailedquotetabchartnews" data-qmod-params="{"symbol":"ABT:CA"}"></div>
<h2 style="text-align: center;">Articles including TSX:ABT</h2>
This will display a quote area with pricing info on the "symbol" I input, as well as display a heading and then the related posts. However, whenever I update the page, it's stripping it out so it looks like this:
<div class="qtool" data-qmod-tool="detailedquotetabchartnews"></div>
<h2 style="text-align: center">Articles including TSX:ABT</h2>
Is there any reason why it is stripping this out, and how can I go about fixing it? This is new to me, as my old Studiopress theme lets me input it as I like.
The weirdest thing is.... If I paste the whole code, and remove something then save, it doesn't strip it.
So for example, I'll past the code, but remove the H2 portion, doesn't strip it when I save.
Hi there,
Are you referring to the tags description field?
https://www.screencast.com/t/prae2WbVoS
That's all handled by WordPress and the theme doesn't control the functionality.
I believe it doesn't allow HTML by default. Maybe something like this would help?
https://en-ca.wordpress.org/plugins/allow-html-in-category-descriptions/
Awesome! That worked.
No problem :)