Add custom code inside section

Posted in: Newspaper
Post count: 37

Hi,

Can I add JavaScript in the <head> section from the “Theme Panel” or shaould I edit header.php.

If I add the code in the <head> section of header.php, does it affect when I update theme via “Evanto Market Plugin”

Regards,

Post count: 20688

Hi,

If it needs to be placed in the head, insert in the header theme file, between the head tags
https://www.screencast.com/t/VrkBzpze9
Any modification made directly to the theme files will probably be lost when the theme is updated.
You can make modification through a child theme, as this will not be affected by the theme update
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

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