This is the ad code Simion. It’s added to single.php file. So when I copy this CSS code in the theme panel, is it also gonna be saved and come back after an update?
Code<div class="adh">
<div class="wpb_raw_code wpb_content_element wpb_raw_html">
<div class="td-g-rec">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Ad boven titel -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-6504940155773250"
data-ad-slot="9561713763"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
Ok Simion. Thanks!
I entered the below code in the CSS panel and i get a red error cross saying: Expected RBRACE at line 100, col 4. What is this?
@media (max-width: 767px) {
.td-header-wrap .td-header-menu-wrap-full,
.td-header-wrap .td-header-menu-wrap,
.td-header-wrap .td-header-main-menu {
background-color: #fff !important;
height: 54px !important;
}
.header-search-wrap .td-icon-search {
color: #fff !important;
}
Hey Simion,
I think it works fine now, indeed. Thank you.
So i can just paste the @media code i posted above in the custom code section and then after an update i dont need to paste it in manually again?
I also have a custom designed Adsense ad above the article title on mobile. See here: https://www.dagonline.nl/antillen/toekomst-insel-air-onzeker-na-uitvallen-toestellen/ Can i paste that code also in the custom code section to show up again after an update
Thanks!
Here is the link Simion.
So when i add the code to the custom CSS part in the theme panel it will work, also after an update?
Thanks Simion, that worked perfectly on my laptop, but not on mobile. How to get it fixed on mobile too?
Also, i enter a css code after each update to remove a black flash in my menubar. Can i add the code also to the custom css field, so that i wont have to add it every time after each update?
This is the code:
@media (max-width: 767px) {
.td-header-wrap .td-header-menu-wrap-full,
.td-header-wrap .td-header-menu-wrap,
.td-header-wrap .td-header-main-menu {
background-color: #fff !important;
height: 54px !important;
}
.header-search-wrap .td-icon-search {
color: #fff !important;
}
Check out Amit Malewar, he is active on the forum also. He can fix almost everything, especialy on SEO and speed. He is a long time and very experienced WordPress and Newspaper user. He fixes my website on a regular basis. His email is amit@snaxzer.com. Succes!
@ Catalin
I was just warning them, because it was weekend and a broken website sucks. Glad its been fixed! Thanks!
Just grab the code from Adsense and paste it between the <head>/</head> tag in your header.php file (Newspaper theme folder via FTP) and you are good to go!
Ok.To bad. There should be an option to place the header also under the header.
Anyway, thanks!
Congrats! I love the theme! Best around! ???
Hey Chris,
Sounds good man. Nice to hear all this. Thanks for the input. Interesting.
Do you have an email address for me? I wanna ask you some questions, also about Google News.
Thanks!
-
This reply was modified 8 years by
Eric V.
Thanks Simion!
Please bring it to the table of suggestions. Many topics about this here on this forum.
Thanks!
Chris, Amit just told me ACF is a premium function in AMP for WP. So this is not an option either. This is excactly why TagDiv need to bring an update soon. For all news publishers using newspaper this is very important.
PS. i hope the support team will look at the time of my first post for replying though.
-
This reply was modified 8 years by
Eric V.
Hey Chris,
It works, but the customization is extremely limited. You cant really make AMP pages an extention of the Newspaper theme/your website. It look a lot different. I use AMP for WP (because you can customize a lot more) and Amit made it look as much as possible. But i cant add a source field there. For that, i have to buy the premium version, which costs me 50 dollars. Thats a lot of money for just a source field, which is all i need. Yet, its crucial when you run a professionel newswebsite.
Since AMP is really upcoming now and its pretty clear its here to stay, it would be great to fully integrate AMP support in the theme itself. Many themes on Theme Forest support AMP already. I see there are a lot of people asking for it in previous topics also. TagDiv should really make this a priority now.
-
This reply was modified 8 years by
Eric V.
Ok thanks!
Thanks!
I did exactly as you told me, but there is no change, still a black flash. I deleted cache also, no result. Please look at my screenshot above, thats what i did and how it is now.
Please help.
OK. Should i change the #222 also to #fff in the main style.css sheet? I dont think so, otherwise it wont make any sense
Do i need to activate the Child Theme in some way? I did make the change, but no result.

I had this code and it worked fine, but with the theme update all was gone.
Can i add this somewhere else where it stays after an update? Child Theme for example?
Please help.
Hey Catalin,
I think it was a strange glitch. When i was in a post, i did see that same post in the related article block right under it. I think the issue resolved itself. I have no idea. You?
Thank you. But the style.css child folder is ofcourse empty and i dont know from where to grab the code exactly. Can you please provide the code for me so i can paste it in the child theme style folder? That would be great.
Thanks!
Hello,
Because of the new update and overwritten files, my menubar flashes black again. I did my modification by FTP. Can i add a CSS code to the theme to fix this issue? That way i dont have to add the code manually every time their is a theme update.
Thank you!
-
This reply was modified 8 years by
Eric V.
Thank you Simion!
Clear. Thanks. To bad, since Newspaper is a Newswebsite theme and videonews is becoming more and more poplular on newswebsites. Hope to see it in the near future, so people can visit the same video newssection from the mainmenu!
-
This reply was modified 8 years by
Eric V.
Thank you Simion.
I know where the “Related Articles” section shows up. I meant to say, i wanna know how to configure it, like changing the tab color for example. It dont show up anywhere (widget section of composer) like any other block.
Thank you Simion. That worked, only the arrow stays behind, its didnt became black, but stays grey. How come?
