- This topic has 11 replies, 3 voices, and was last updated 1 month, 1 week ago by Leo.
April 18, 2020 at 9:21 am #1244440jason
Not sure why this is happening. Before using GP I had the ads in the header and body. Now, they only display in the body. I had have been using the insert header and footer plugin – I took that out and manually added the adsense code using the elements – hooks – display etc. Cleared cache and refreshed and there was no change. Any help would be appreciated – Not super techy, but learning. Here is my website
The main part of my website is the forum section under “community” tab. With no header ads, nothing shows on my forum pages.
Thank you in advance for the help.April 18, 2020 at 11:02 am #1244570jason
Update – ads displaying in the header on mobile but not desktop still.April 18, 2020 at 1:31 pm #1244653LeoStaffCustomer SupportApril 18, 2020 at 2:59 pm #1244721jason
Here is the script
<script data-ad-client=”ca-pub-3137224266747099″ async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
hook – after_header
location – entire siteApril 18, 2020 at 3:18 pm #1244734jason
Also – when i do an adsense preview on google I do not see an example ad in the header like I used to see. Just trying to think of any info that would be helpful. If I slide the ad load bar it just ads more ads in the boday.April 18, 2020 at 5:41 pm #1244814jason
Update – I switched themes and the ad displayed correctly in the header section.April 18, 2020 at 6:01 pm #1244827TomLead DeveloperLead Developer
As long as the code you’re adding is added to the HTML of your page, it should display (regardless of the theme you’re using).
Is the Element still active? I’m not seeing any Adsense code after the header.
Let me know 🙂April 18, 2020 at 6:38 pm #1244848jason
Hey Tom – I took out the code from the element and used “insert headers and footers” widget, which is what I was using with the theme prior to GP. When I switched to the previous theme with this the ad displayed correctly. When I changed back to GP I deleted the hook and continued with the widget since I know it works on a different theme. Could it not be working because of the styling I did on the homepage or something like that? Pretty confused here.
Thanks for reaching out.April 19, 2020 at 5:58 am #1245211jason
update – I disabled autoads and did a manual insert and that worked – mostly. the ad is now placed at the very top of my page – can we move that down to under site name? I am guessing that we can do that if I use the activate element = hook -> placement method but want to be sure before I mess with this anymore.
Current example – http://www.livingdipfree.com
Thanks!April 19, 2020 at 8:55 am #1245524LeoStaffCustomer Support
Yup just choose the hook where you want the ads to display:
https://docs.generatepress.com/article/hooks-visual-guide/April 21, 2020 at 8:59 am #1248188jason
Yep this worked – chose the hook “insert after header” and it placed the ad under the site title. Don’t’ know why autoads doesn’t work right but this does the trick afterall. ThanksApril 21, 2020 at 8:24 pm #1248693
- You must be logged in to reply to this topic.