Archived topic
Hooks & Custom HTML Blocks Wrapped in Span when Logged Out
6 replies · Started by Leo on June 10, 2022
I'm trying to add a single div elements with an id to my site. When logged in, both custom hooks and HTML blocks work fine. When logged out, the divs are converted to a spans.
E.g.
<div></div>
Converted to
<span id="xxx"></span>
Please advise. Thank you!
Hi Leo :)
Is this only happening in a hook element? What if you do this in a static page?
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hello, Leo :). Not often do I get to say that!
Sent over the appropriate information. Thanks!
Hi Leo,
I was able to find a workaround. You'll see that I updated the page with the hook to one of our lesser trafficked pages. It's a non-issue for us now but I didn't want to close it out just in case it's a bug.
Let me know how you would like to handle this. Thank you!
Hi there,
the Theme doesn't do any kind of string replacement especially not custom HTML that is added to your content, whether that be in a hook or not.
Have you checked with Ezoic? As there scripts do replace HTML
Hi David, thanks for the reply. I'm assuming that's the case. Thank you!
Let us know how you get on