Posting code before the body tag on specific categories?

Posted in: Newspaper
Post count: 28

I have some code that works great in the footer script code location, but I only want to run it on certain categories. before the body tag. It needs to come before the body tag, but outside of the divs for the page. Using the ‘raw html’ doesn’t seem to work properly. Is there a way to apply ‘footer script code’ on select categories in the Newspaper Theme?

Post count: 35449

Hello,

If the code need to be set before the body tags, then the code should be set here -> https://i.imgur.com/F5M9ggu.png or if is a simple js -> https://i.imgur.com/ZVGznft.png
Now if you can set the code inside the cloud template (this mean it will be between the body tags), then you can try to set the code in a column text or text with tile elements, in the text area.
Now the problem with the code to be apply on specific categories it is a little tricky. If the code is set global, the I believe it should be use a condition to apply the cod only on specific categories. If the code can be set on cloud templates, then you can use different cloud templates and assign them individual.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.