Hi,
i just installed this theme, everything is ok till now except i cant get Header ad to show my code of banner. Same code is working in sidebar banner.
My website is right now located on link: http://www.visoko.co.ba/newsmag/
Hi,
I have checked your site and your banner is displayed: http://screencast.com/t/vH6SZCyIttCm
You can use these divs to display your non-adsense ads and also find more infos: https://forum.tagdiv.com/ads-system-full-guide/ just change link ant the image.
Thanks!
Hi,
The ad code container is located here: http://screencast.com/t/4A8jpQ21Lwe
You can try to create another ad container and call other add sport there then style it via css. This would not be an easy task so if you don’t know how to do it I suggest you hire a developer or a freelancer to help you do it.
Thanks
@suport002 Speaking in theory, as I haven’t tried it myself, but couldn’t he simply place his html in the header ad box for two images, and style them with a bit of custom css?
@bhcrow Based on what you have on your site right now (both anchors with images inside overlapping each other), add the following code to your custom CSS in the theme panel. It puts the two images side by side and restricts their width and height to the 728×114 ad container.
.td-header-ad-wrap div div a {
display: inline-block;
width: 362px;
padding-left: 2px;
height: 114px;
}
.td-header-ad-wrap div div a img {
width: 100%;
position: relative !important;
max-height: 100%;
}
This works but it is rough. You will still need tweak it a bit to fit your application and the images used.
You can find a complete, easy to follow, reference for CSS at W3 Schools CSS. That will help you understand the properties I used above so you can tweak them. The selectors are correct though, for your code.
Hope this gets your site moving in the right direction.
Good luck.
i placed my code into another spot custom ad 1
then i called it in ads.php (in child theme) instead of header spot
i used code for displaying images with table :
<table >
<tr>
<th>
</th>
<th>
</th>
</tr>
</table>
now i have two images in a row, and i am trying to css them separetly, maybe there was a better way to do this, but this is how i done it for now 🙂
also, i tried to write css in my child theme (style.css), it had no effect, later tried with custom css in theme panel which was ok
Yeah, always use custom CSS in the theme panel to keep updates from overriding your changes.
Technically, a table works, but you’d have a better time sticking with what you had and the CSS I sent you.
<a href="http://ad-domain.com/link/">
<img src="path/to/ad/image/two.jpg">
</a>
That’s what you had in there, basically. An anchor around and image. Clean and simple.
Whether you do it the newer way or stick with old school, add a class to the links and use that selector to style the links/image individually.
well, at first i tried to use your css with that clean and simple anchors, but it didnt work, so i used table
That works, but every time i save some settings in Theme Panel code from Custom ad 1 dissappear, why is that?

in screenshot up is a code i use inside that box, but i need to copy it over and over
-
This reply was modified 11 years by
bhcrow.
Hi,
@bhcrow – ad disappear issue – we’re looking for the cause, until we fix it try this solution – https://forum.tagdiv.com/topic/custom-ads-broken/
Thank you, Emil G.
Hi,
Not sure about this, I’m not aware how the adblock code is working and detecting ads.
It might be that the ads have been reported and added to their filters: chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/pages/adreport.html?url=http%3A//demo.tagdiv.com/newsmag/&tabId=502
You should try to find an explanation for this online.
Thanks
I have found and solved a problem.
Adblock Plus uses filters to block ads. Filters detect some words or classes to identify ads.
In our case we had 2 classes that causes Adblock to block images from site:
1. td-header-sp-ads
in my case used in file: /parts/header/header-style-1.php
2. td-header-ad-wrap
used in file: /parts/header/ads.php
I renamed both of those classes to: td-header-sp-adss and td-header-ads-wrap , and images showed againg with adblock turned on.
Later i added some custom css in my theme panel, and thats it.




