Disable frame layer on mobile

Posted in: Newspaper
Post count: 94

Hello dear support,

I have added a javascript code in the footer body to show a frame layer ad. Unfortunately it’s a mess on the mobile version because the ad is all over the display.

Is there a way to disable a code like this when it comes to the mobile version?
<script type=”text/javascript” src=”~~~~~~~~”></script>

Thank you!
Kind Regards

Post count: 6600

Hi

You can try to add a div element with your code inside and on that div add a class like td-myad and hide it on mobile via CSS like this:

@media (max-width: 767px) {
.td-myad {
display: none;
}
} 

Hope this helps!
Thanks

  • This reply was modified 12 years by Lucian.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.