Archived topic
Include JS code (Adsense code) inside Post content
3 replies · Started by Chitika on September 11, 2020
Hello.
I would like to include JS code (which is essentially Adsense code) inside post content.
In the following positions.
1. After post title
2. After para 2.
3. After para 4.
Is it possible with GP WITHOUT using any plugin.
Hi there,
1. You can use a Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
It includes a link to the Visual guide so you can see which Hook to use.
2. and 3. It is possible with custom development - we recommend using this plugin:
Thanks, I will settle for a plugin. It looks more easy that way.
Yep - it really is :)
Glad to be of help.