Archived topic
Custom code in per domain on a multisite install
1 reply · Started by GWM on August 7, 2019
Hi all, I have GP running on a multisite setup, and it's working great - really happy with it! However, Google Adsense is now requiring me to add a custom js tag in my <head> that is specific for each domain on my multisite network, so I cant just paste it in header.php. Do you know how I can achieve this?
Thanks!
Jesse
Hi there,
You can try using wp_head in Hooks Elements which would be specific for that sub-domain:
https://docs.generatepress.com/article/hooks-element-overview/
Let me know if this helps :)