Archived topic
Use Custom template for home page
3 replies · Started by TEJVAN on November 22, 2019
Viewing posts 1–4 of 4
I want to add google adsense code on all pages except a few. So I add code to
content-single.php
If I create custom-template-no-ads.php
Under page attributes, there is no option to choose a different templates
Is it possible to use a custom template for a few pages with this themne?
Hi there,
why not use the Hook Element to insert your code?
https://docs.generatepress.com/article/hooks-element-overview/
Great, thanks!
you're welcome
This archived topic is closed to new replies.