- NewsmagUsing other ads
- NewspaperUsing Other Ads
- NewsmagSidebar ads
- NewspaperSidebar ads
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperCreate a frontend submission form
- NewspaperHow to Use the Tabbed Content shortcode
- NewspaperWooCommerce: Happy “Add to Favorites!”
- NewspaperHow to generate Facebook App ID
- NewspaperLink Tracker
- NewspaperFlex Block Settings Guide
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperSocial Icons
- NewspaperPosts Loop Element
- NewspaperSet a Background for Category Page
- NewspaperThe Newspaper Mobile Theme: Introduction
- NewspaperHow to Add a Logo in Newspaper
- NewspapertagDiv Shop
Hey saw those errors before ill check them further.
However please note I have a staging area it only has the basic bare minimum plugins I still get the errors and no ads.
Would someone be so kind to check.
Thanks honestly not sure how to resolve otherwise.
Hello kpople,
Please notice that you only use the Ads section from Theme panel if you want to display the Ads in Top, Inline or Bottom section of your posts. First of all, you should read our documentation from here -> https://forum.tagdiv.com/newsmag-header-ads/ because there you will find out, how exactly you can set up your Ads. Also, for more details about how exactly you should use the Google Adsense, please check here -> https://support.google.com/adsense/answer/181947?hl=en&ref_topic=28893 the official Adsense documentation. Another alternative for you would be to use the AdRotate plugin to display your Ads.
Thanks for your understanding!
Hello,
I’ve been struggling with adsense integration, and I desperately need help.
So basically, I’d been using the theme’s ad insert functions to insert the adsense ads (1 top, 1 bottom, and 1 in-line). However, since there’s not much option for me to fine tune the ads through the theme’s ad inserts, I decided to get rid of those codes, and manually insert the ads on every single post without the use of any plugins or theme’s functions. So I have completed inserting those ads on every post through the html section of the editor.
But here’s the problem.
The ads don’t display all the time, and this is not the problem with the browser cache, or Google unable to find the right size for the ad placement. The ads show perfectly and always with other themes made by other companies. I have tested this with 5 different themes and also the 2017 theme. But it was just these two themes, newspaper and newsmag, that do not display the ads all the time.
Please have a look at the following image:
https://imgur.com/a/S8j1FIz
The code I inserted on the pages are as follows:
<div class=”ad-wrap”>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– post-top –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-xxxxxx”
data-ad-slot=”xxxxxxxx”
data-ad-format=”auto”
data-full-width-responsive=”true”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
And the css I applied to the ads’ divs:
.ad-wrap {margin-top: 25px; margin-bottom: 25px; padding: 0; line-height: 0 !important; text-align: center;}
.ad-top {width: 300px; height: 250px;}
.ad-middle {width: 300px; height: 250px;}
.ad-bottom {width: 300px; height: 250px;}
The link to my website is on the picture from the above,
and you can click on any of the posts on the main page to test out.
Thank you in advance!
Ok I was genuinely trying to avoid this.
I find when i use the tag div ads i get issues with showing sometimes and not other times. I typically use html straight and never get a problem. Adsense is set to show 100 per, despite that most times there is an ad missing on everypage.
Useoftechnology.com you can check post and home page.
https://www.screencast.com/t/Hfm1dJjf3A
You do have one console error, btw
The resource https://pagead2.googlesyndication.com/pagead/js/r20180618/r20180604/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate <code>as value and it is preloaded intentionally.
main errors are also clearly noted:
https://search.google.com/test/mobile-friendly?id=4LuGR3wMtBMNR1YOeduvYw
Fix the following 2 issues
î—‰
Clickable elements too close together
î—‰
Content wider than screen
So, you need to make sure your ads and logos are responsive; you need to use responsive ad units to be mobile friendly. The reason elements are not rendered properly is you are blocking your style.css and other elements via robots.txt which is really bad!
You also had 15 page items that could not be loaded:
https://search.google.com/test/mobile-friendly?view=fetch-info&id=4LuGR3wMtBMNR1YOeduvYw
Note the *blocked by robots.txt* — only you can fix that. You should never block Google from accessing elements loaded on the page.
e.g.,
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js Script Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/plugins/jetpack/css/jetpack.css?ver=6.2.1 Stylesheet Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/plugins/jetpack/modules/widgets/social-icons/social-icons.css?ver=20170506 Stylesheet Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=5.4.5 Stylesheet Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/plugins/td-multi-purpose/style.css?ver=4.9.6 Stylesheet Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/plugins/ytsubscribe/ytSubscribe.js?ver=2016.10.2.3 Script Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/themes/Newspaper/mobile/js/tagdiv_theme.min.js?ver=8.7.2 Script Googlebot blocked by robots.txt
 https://www.tricksbykabir.com/wp-content/themes/Newspaper/mobile/style.css?ver=8.7.2 Stylesheet Googlebot blocked by robots.txt
It’s important when using testing tools to read the “why” and “solutions” noted on the checker, as in my pasted in stuff above.
Hope that helps!
(I don’t work here.)
-
This reply was modified 8 years by
simchris.
Hi Guys, I want to add the header ad to all my pages, however there is one page with a revolution slider at the top that doesnt look right with the header ad. Can you advice how I can remove it from just that one page. The page has other ads so I dont want to put a code to remove all ads, only just that one page.
Something very strange and after a lot of tinkering I need some help, on mobile the as code shows but the ad does not display. The ad code displays in the source code but the ad does not populate.
If I use adsense it works fine, but with dfp it won’t load. I have disabled caching/compression, bypassed advanced ads but I have the same issue. Please note this is only with the header ad, all the other ads work fine.
Thanks,
Clyde
Hi,
Would like disable all ads in Woocommerce and other custom post types, is there any easy way to do this?
Thank you!
Hi, I have a problem in my home picture article. The image dissapear, If I open article the image appear but if I go to home the image dissapear. If I change themes to another themes is appear. I give the screenshot
or you can see the problem here in my home page https://mbahwp.com
Wordpress version: v. 4.9.6
Newsmag version: v 4.4
WPML version: v 4.0.3
My site: http://astro.najar.ca
I’m having a hard time working with translations. I bought WPML by recommendation of yours. It is a great pluging thou.
But I’m having trouble with some parts of newsmag.
1) First of all, the default widgets in the sidebar. I wanted to translate the default widgets per language. Down below in each widget I see a combo that let me to select the language I want the widget appear in. I click “save” and the value always return and stays in “All languages”.

The problem is in deed the widgets ( [tagdiv block 9] & [tagdiv] popular category ). For example, the RSS Widget works just fine.
2) I got the idea of making one sidebar per language and assign it to each translation of the main page (SiderBar English, SidebarFrancais, SidebarEspanol) . So I did that and that worked *** only for the main page***. I realized that I had to assign a sidebar to the blog and post template and for other sections too in the “theme panel” config section.
But the problem is that the settings in Newsmag Theme Panel aren’t localized per language, so, if I select the “SideBarEnglish”, it will appear for the other languages too.
Thank you for your help
Hi,
I’m having a strange problem.
Google AdSense seems to have some sort of problem on the theme’s desktop version, because only the sidebar ad loads every time you visit a page, the others (In-Article and below the News ticker) show up only 1 time out of 10 or never. You can see only the area taken by the blank ad.

I verified the code something like 100 times: getting the code from Google Adsense website and pasting it in the slot.
I also tried to put the code under div tags but nothing happened.
Furthermore when i load the page with the Firefox inspector, it shows this warning “unreachable code after return statement” for the gtag.js, but Chrome reports nothing.
The header ad is a Text/image, Responsive. The Article ad is a Native Inarticle, Responsive. Both results as Active on my account.

I really don’t know why this is happening, can you help me somehow?
Hello karayel,
You should use the div’s if you want to achieve good results. Please read here -> https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Thanks.
Hello,
Yes, you are right! This is our documentation regarding using other ads. You should use the div class for each device you want to display your ad, as it’s described here -> https://www.screencast.com/t/TGxxrOJvPFI Where is the problem?
Thanks for your understanding!
I have already read this:
https://forum.tagdiv.com/newsmag-using-other-ads/
and other threads on the Tagdiv forum.
-
This reply was modified 8 years by
My Beautiful Europe.
When trying to share an article or post to Facebook, it includes information that I do not want displayed. I’ve attached a screenshot to show what I’m talking about. The second line repeats the show title, and also shows the date, and for some odd reason shows the names of the other social sharing icons I have active on the site in the order as they appear…Facebook, Twitter, Google+,etc.
All I want is either an excerpt from the article under the title and image, or even better nothing all expect the image, the show title and maybe the date it was published. But honestly, if I can’t have anything except the title and image I would be good with that. Showing Facebook, Twitter, Google+ before any article text makes the site look amateurish, which is not what I want from the Newspaper theme. Please, could you help with this issue? I really don’t want to have to deal with using 3rd party plugins to solve this. Isn’t there some setting or custom css I can slap in and remove all that stuff in one fell swoop? Here’s a link to the main website so you can see it action for yourself:
https://davidfeldmanshow.com/
And attached is what it looks like in a preview of what will be shared to Facebook:
https://davidfeldmanshow.com/wp-content/uploads/2018/06/Michaels-No-Roy-Cohn.jpg
The other menu still loads, it is behind the one added by the plugin. So it might be visible while the website is loading.
Try to enter the code I provided directly in the theme stylesheet instead of the theme panel, so it will be loaded faster and possibly eliminate the loading effect.
Thanks for your time, Catalin. Tried that, which is why I switched styles in the first place, but does the same on all styles…


Any other ideas?
Mark
Hello!
First of all, I want to clarify that I am very happy with this theme and its technical support. There’s always help, new features, updates , etc – it’s just great.
But some things can be better (in my opinion). This is a constructive criticism, just to provide some interesting ideas. Please do not take this post as an attack, but rather, personal suggestions.
AMP: AMP currently accounts for a large percentage of traffic on my website. I’ve consulted with fellow webmasters, and everyone thinks AMP is a big part of the future. Everyone, absolutely everyone who uses it, receives a lot of traffic through AMP.The tagdiv AMP plugin is correct, does not cause errors, supports adsense, analytics…. in short, is functional. But…. it lacks something super important and essential: A Menu.
Please enable the option to add a menu to your new AMP plugin update, it is really necessary. Any other idea that helps to “call to action” or “keep the reader active” is welcome.
Structured data: Yes, I am aware that the theme has all the structured data. But it’s not good for google to misinterpret them. Yes, the theme is correct, but for some reason it makes google not consider it correct. (https://forum.tagdiv.com/topic/error-with-microformats-can-i-repair-this/) It’s not a good idea that I have to add a code to a theme file (function.php) yourself for google to fix this. Please find a way to make it easier, more practical and functional for google in your theme.
And that’s it. Unbelievable? A theme with thousands of settings, and I only have two suggestions 🙂
Thanks for reading me.
Hi,
You could use different ads by viewport, this is a possibility
– https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
Using the predefined containers would allow to display different ads by device.
The sidebar will drop below the content only on phones. On other devices it will be resized automatically as the container shrinks in width. A setting to keep this from happening or change the sidebar behaviour does not exist. Sorry for the inconvenience.
Thanks
Hi Simion,
One of the ad networks that I plan to partner with has this requirement. As the browser resizing action happens, the sidebar width shrinks and that will show cut-up ad which violates their ad-policy rules. The ad network wants to be loyal for their advertisers to show their ads in full size. If 300px can’t be displayed, then it should fall to the bottom of the page.
It is a real disappointment that NP doesn’t support this. Now I have to research another theme in the market which does this for me.
Thanks.
Hi,
That is in most cases caused by javascript errors due to plugin conflicts, or theme modifications, or added code. The lazy-load is the first to break, there could be other problems that you have not yet identified.
There was a user with a similar issue a while back, the images were not loading in his case because of a script that was part of the ads he was using.
If you would check in the browser console there will be javascript errors most likely.
Try the basics initially, deactivate all plugins as a quick test (leave only theme plugins active), remove custom code from theme panel, deactivate the child theme if used, remove theme modifications or code added in theme files.
Let us know what you find.
Thanks
Hello,
I cannot see any script not loading. you do have may warnings in the browser console. https://www.screencast.com/t/SqJ6jZDvC25
The menu seems to load fine on mobiles. I cannot detect any issues on any of our devices. The menu loads fin on both android or iphones. Please test from another device.
Thank you!
Have just mage a clean install, no other plugins – no content. Clean wordpress with this theme installed and required plugins.
Here is what I have done:
– Press “add new”
– Choose “Features Icons 2 – Technology” template
– Press “Create template”
– Wait until it uploads to composer
– Do changes or no (result is the same)
– Press “Save”
– Press “X”
And it saves it as a regular page, not a template…



I have added the code for a non adsense ad in the side bar I have also tried that code that in other template advertisement areas (after article and header) but there is a huge space between the ad and the rest of the template. here is my website http://www.wkndbinge.com. Can you help me fix this error?
