Inserting script tag in Head Section
Hello,
I wish to add a script in the head section of my website. As a setup I have an astra child theme and tried using the child's header.php file in order to insert the script tag there however when I inspect element on the page it is not being rendered in the head part.
Is this because Brizy renders custom scripts differently ? What can be done to add a script tag in the head section ?
-
Hello Ginel,
Thank you for your message!
Regarding what you said, it is possible to add a script tag in Head Section. For that to happen use Code Injection>>Head. If it is not working, try to change the theme and make sure you have the latest versions. At the same time clear the server and browser cache and make sure the code you put is correct!
Have a nice day and kind regards,
Doina
0 -
Hello,
Using the WordPress pro plugin, I'm unable to access code injection. How can I add a TikTok pixel code to the <head> section of my Brizy pages?
I've added the pixel code in the theme (TwentyTwentyOne) but it doesn't work on any pages using Brizy.
Thanks
0 -
Hello Zachary,
Thank you for your message!
Code injection is mostly for Cloud, but at the moment, if you want to add some code in header or footer of the site create in WP and make affect also for Brizy pages, you have to add the code into the header section from the theme. If you will add the code through the WP, it would not have some actions on the Brizy pages. For example, Astra theme has the ability to add the Astra Hooks plugin. Here you can find more details. Hope this helps!
With the best regards,
Doina
0
Please sign in to leave a comment.
Comments
3 comments