Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Adding plugin code to pages before tag

Home / Forums / Virtue Theme / Adding plugin code to pages before tag

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
June 28, 2022 at 10:33 am

It’s been a while since I’ve done much more than basic updates on two websites using Virtue Premium (which I love, by the way!). I’ve recently dusted off a few cobwebs and created a third website (child theme of Virtue Premium), and would like to add the code provided by the StatCounter plugin (because I already have an account with them), and the code specifically identifies this site). They say it needs to be pasted “into every page (or into the master template) of your website just before the closing </body> tag.”

With the new (to me) block system, I am not seeing a place to do this. I cannot seem to view any page’s full code to edit it or specifically, to get to the closing body tag—just individual rows or blocks. I’m sure I’m missing something basic here.

Can you please direct me to the most efficient way to add this plugin’s code to the entire site, like, a “master template”? Or even onto individual pages one by one? (It’s not a very big site). I can send the provided StatCounter code your way… or… a link to the website if necessary—just let me know.

Thanks for bearing with me!
~n

  • The forum ‘Virtue Theme’ is closed to new topics and replies.