Header ad not showing

Posted in: Newsmag
Post count: 59

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/

Post count: 322

This is what I see on your site:

It’s not clickable because no anchor exists in the code, but it is showing the banner in the correct position. Can you be more specific about the problem?

Post count: 7909

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!

Post count: 59

you are right, i had Adblock enabled in my browser, and for some reason it blocks ads from header, and not from sidebar. I disabled it on my site and i saw my ad 🙂

Thx for quick answer, maybe my experience can help someone else later

Post count: 59

i deleted anchors just to test pure image showing because of problems i had, now i want to try to split width for two ads in one row, i believe it can be done with coding

Post count: 6600

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

Post count: 322

@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.

Post count: 59

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

Post count: 322

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.

Post count: 59

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?

Here is how that should look

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.
Post count: 322

Not sure why it does that. Seems like I’ve seen another thread here about a bug on custom ad slots. That’s a question for tagDiv Devs.

Why not just use the header ad box? Already goes into the header where it’s needed. Maybe it won’t disappear?

Post count: 1291

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.

Post count: 59

Can someone please find out why Header ad is not showing when Adblock Plus is turned on in browser, while sidebar ad is ok?

many users have this plugin installed on their browsers, and our ad is simple image with link (not google ads), can we solve this?

Post count: 59

same problem on Newsmag demo site:

Demo site with Adblock turned on

but sidebar ad is showing without any problems:

sidebar ad

i am not sure is this info useful:

adblock

  • This reply was modified 11 years by bhcrow.
  • This reply was modified 11 years by bhcrow.
Post count: 6600

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

Post count: 59

adblock is widely used because of annoying ads that we see at other places. But it should not block self hosted simple image.

Post count: 59

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.

Post count: 6600

Glad you’ve managed to work around it.
Thanks for your feedback!

Viewing 18 posts - 1 through 18 (of 18 total)
You must be logged in to reply to this topic.