Phew…. glad that resolved it – And no problems, theres a lot of nuances with WP and different Themes ๐
Yep, you can re-activate your plugins.
Ok adding code to the themes templates such as the Header or the Footer, you can use the Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
1. Go to Appearance > Elements.
2. Create a new Hook element
3. Insert your code
4. Select the Hook where you need to add the code, options:
a. wp_head
– insert inside the <header>
tags
b. wp_footer
– insert into footer – immediately before the closing </body>
tag
c. wp_body_open
– insert immediately after the opening <body>
tag
5. Set the elements Display Rule Locations to Entire Site
I would recommend creating a separate Hook for each script you want to add, even if they are using the same hook, makes it easier to debug if one code is not working.
For other codes like PHP snippets, that you may be tempted to add to the themes functions.php, we explain how in this article:
https://docs.generatepress.com/article/adding-php/
CSS best place for it unless you’re adding a lot ( 100’s of lines ) is in the Customizer > Additional CSS. You may find some already in there that came with the Site Library import