incubator-answer
incubator-answer copied to clipboard
Add to Head not working
Describe the bug There is no output when you add something in the head area. Neither text nor javascript.
To Reproduce Steps to reproduce the behavior:
- Go to 'Admin > Customize > CSS/HTML'
- Add content in Head field and save
- Check website (source code) and nothing is visible
Expected behavior Added content should be visible in the head area.
Platform (please complete the following information):
- Device: Desktop
- OS: Windows 11
- Browser Firefox
- Version 108.0.1
@tmrwltd Can you please post the content inserted in step 2, so that we can debug it. thanks!
I try following:
a) Just type "HEAD" in the form
b) Add Tracking code:
Oh oh oh, I suddenly get it. You were not seeing the insert in source code mode (I just noticed the source code in parentheses, sorry).
This part of the function is implemented as follows.
- The
Custom CSSsection is converted to acustom.cssfile and inserted into theheadwhen rendered on the server side. - The
Head,Header, andFootersections are dynamically inserted into the corresponding sections by JavaScript during client-side rendering.
This is why you don't see the inserted content in source code mode. In this case, you can see the inserted content in the Elements panel of the developer tools.
However, our implementation is still buggy, the dynamically inserted script will not run. We will fix it as soon as possible.
Thanks for your feedback!
Ok. Thank you for the explanation.
Fixed, please upgrade to v1.0.1