Archived topic
How to Insert Google AdSense Code without Plugin?
3 replies · Started by Suraj Katwal on December 5, 2019
I want to insert the AdSense code on my website. I was using MyThemeShop and I was using custom code in functions.php to insert ads after Title in the single page, after 4th paragraph and after content. So, how to do this in GPP? It is possible using hooks?
Also how to insert ads below the menu/header in GPP?
Hi there,
this plugin to insert adverts within the content:
https://en-gb.wordpress.org/plugins/ad-inserter/
To insert after nav/header then you can use the Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
So there isn't any solution to insert ads between paragraphs using Hooks?
Unfortunately not as there are no hooks between paragraphs.