Hello, I’m having a serious issue inserting code into the <head> of my website using the Newspaper theme. I’ve tried multiple methods and none of them are working.
I need to insert the Google AdSense script (adsbygoogle.js) into the <head> to verify my domain, but the code does NOT appear in the page source using any method.
I am always checking using “View Page Source” (not inspector).
I have also tried using external plugins, completely disabling LiteSpeed Cache and Wordfence, and manually integrating the code directly into the theme files (functions.php and header.php). However, the script still does NOT appear in the page source under any circumstances.
I would appreciate guidance on:
the correct method to insert code into <head> in Newspaper
or if there are any known limitations with AdSense or external scripts
Thank you in advance.
Hi,
What you need to do is to go to Newspaper > Theme Panel > Analytics/JS Codes https://prnt.sc/cSjJjk1XbMHH set the code in the first field, and after that it will be displayed on your website.
I hope this will help you!
Thank you so much, I’ve finally received the code in the ads tab after my persistence, but now I have another problem. After approval and adding the ads.txt code, the ads aren’t showing. Do I need to activate something in Newspaper for them to appear? I’ve enabled all the options in that tab, and I’ve configured automatic ads in ads.
Thanks
Hi,
Yes, here are some quick things to check when AdSense ads don’t show in the Newspaper theme:
1. Ad approval (most common issue): Make sure your AdSense account + ad units are fully approved. New sites or units can take time (hours to days) before ads appear.
2. Low or no traffic: If the site has very low traffic, AdSense may not serve ads consistently yet.
3. Ad blocking / cache:
– Clear all caches (plugin + server + CDN if used)
– Disable ad blockers while testing
– Test in incognito mode
4. Incorrect ad code placement: Double-check that the AdSense code is pasted correctly in:
Newspaper → Theme Panel → Ads, or the correct Ad Box element in tagDiv Composer
5. Auto ads vs manual ads conflict: If Auto Ads are enabled, they may override or delay manual placements. Try disabling Auto Ads temporarily for testing.
6. Privacy / consent (GDPR): If you use a consent plugin, ads will not show until consent is given.
7. Theme caching / delay in rendering: Sometimes Newspaper + cache plugins delay changes. Purge cache and wait a few minutes.