My header ad are not in the middle of the page.

Posted in: Newspaper
Post count: 20

My header ad is showing in the left side of the page instead of the middle.
here is my site.
http://www.chiangmainews.co.th/page/archives/752037

Post count: 20688

Hi,

That is unusual. I could give you a code to center it
https://www.screencast.com/t/1Sey4oWslk

.td-header-style-10 .td-header-sp-recs {
text-align:center;
}

The code can be entered in Theme panel->Custom CSS.

Thanks

Post count: 20

Thanks a lot that’s work! But I have another question, does the header support ads bigger than 728*90 like large billboard?

Post count: 20688

Hi,

Generally the header styles that do not place the logo on the same line with the header ad, will display any ad size you want. You can see the header styles here
https://forum.tagdiv.com/header-styles/

Example with a big ad with header style 4 – http://prntscr.com/k5wqc8

Thanks

Post count: 20

Thanks for the reply, I would like to know if i can disable header ad on my homepage? I want header ad to only appear on my post page. Thanks.

Post count: 20688

Hi,

By a theme setting that is not possible, it could be done with CSS. However if you use Adsense it is complicated. They mention that Adsense ads should not be hidden from view
https://support.google.com/adsense/answer/1354736?hl=en

You could create a condition in the header style 10 you are using, something like this
https://www.screencast.com/t/BhydQTSLfL4
Then the header ad will be displayed everywhere except the homepage.

What you could also do is to use a plugin for your ad implementation. Most users who want more advanced ad settings recommend the Adrotate plugin. More info about it here
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/

Thanks

Post count: 20

Thanks a lot for the reply, if I can create condition can I create condition so that the ad will only appear on post page?

Post count: 20688

Hi,

Then a condition like this will work – https://www.screencast.com/t/LqE4k7wx
The header add will be loaded only on post pages after making this condition.

You can modify the header templates in a child theme, so after a theme update the modification will not be lost
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Post count: 20

Hello, after updated the theme I rewrite the code you given to header-10.php but the header ads doesn’t disappear! Please help! Am I doing something wrong?

Post count: 20

It is now working, Cloudflare cache purging takes a while. Thanks.

Post count: 20

Last year you show me how to hide ads on homepage by modifying the header-style-10 file in the header folder. But now the the has been updated and the header-style-10 are no longer there. Where does header-style-10 go? or Theres a new way to hide billboard ads on homepage?

Post count: 20688

Hi,

Did you make that modification in a child theme? After the 9.7 update this is not possible anymore. Now the child theme is limited to just a few files.
This is a consequence of the recent modifications to the location of theme files, due to Envato requirements. There is an article about it here – https://tagdiv.com/updating-the-core-of-tagdiv-themes/

So now the header template files are in the composer – http://prntscr.com/ng7qe6 You could edit them there, but the modification will have to made again after each update. Files from plugins can’t be modified in a child theme.

An alternative to this is to use a cloud header template. For example set a cloud header template in general, in the theme panel. That will be used in the whole website. In the homepage use a different cloud header template that doesn’t contain an ad.

You can design a header as you want, even import one made by us (and modify it if needed)
https://cloud.tagdiv.com/#/load/Headers
In them you can add any element from the composer. You can set a general template that contains an ad, while in the homepage use one with no ad in it.

Let me know if you need help or you have more questions.

Thanks

Post count: 20

I dont understand
“You can set a general template that contains an ad, while in the homepage use one with no ad in it.”
Can you show me how to do it? I just want header ad to disappear on my homepage thanks.

Post count: 13

Can we assume that the legacy code in header-style-10 will not be updated each time td-composer plugin is updated? Previously, we used mods to that code in a child theme to select an appropriate header for a page. Clearly, that doesn’t work anymore. We will investigate the use of cloud header templates but it is sad to see such a useful capability disappear.

Post count: 20688

@sathana So you want the ad to not be displayed in the homepage, while in the rest of the website it should appear. One solution is to use a cloud header template in the homepage. Edit the homepage and load or create a cloud header template – http://prntscr.com/ninsf7
http://prntscr.com/ninskg
So you can create or load a cloud header template just in the homepage, what it contains is up to you. It will be displayed just in the homepage. With this functionality each page or template can use a different header, the possibilities are many.


@lpa_admin
I can’t say for sure if that will work for sure, if those files will change or not. It is true that the child theme has lost most of it’s usefulness, as it is currently limited to just a few files after the 9.7 update.
We will try to find a way of allowing files from the composer to be modified without doing it directly. If such a way is found we will create documentation for it.

Viewing 15 posts - 1 through 15 (of 15 total)
The forum ‘Newspaper’ is closed to new topics and replies.