Disable header ad (image) on mobile

Posted in: Newsmag
Post count: 90

Hello, I’ve added an image as ad in theme panel->ads->tour header ad:

<div class="td-visible-desktop"><img src=\"https://www.mysite.com/wp-content/uploads/2015/02/image.png\" />
</div>

In this topic I’ve added two “\” in the code because otherwise it shows an image, in my theme panel it’s ok.

I want to hide the image and all the top header ad space on mobile/tablet. With the current code, it doesn’t show the image but it leaves and empty transparent space on the top of the page.

  • This topic was modified 11 years by daimpa.
  • This topic was modified 11 years by daimpa.
Post count: 7909

Hi,

I also tested this with this div and should not have a white space. What header style do you use?

<div class="td-visible-desktop">
<img src="http://demo.tagdiv.com/newsmag/wp-content/uploads/2014/08/rec728.jpg">
</div>

Please provide a link, so we can take a look.

Thanks!

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