How to exclude only on mobile

Posted in: Newspaper
Post count: 5

Hi Team,

I have used your div class for mobile, desktop and tablets to show specific content on different devices and it works good.

But, if I have to just exclude mobile, should I replicate the same content in 3 different divs for desktop, tablet-vertical, and tablet-landscape or there is a better way to do it?

Thanks
Anuj

Post count: 23312

Hello anujsri1,

If you want to just exclude the ads on mobile version, you should try to add only 1 div for all devices with this class -> td-all-devices and disable for mobile mode from Theme panel, like this: http://screencast.com/t/rPHJjNOo3jdy

Hope this helps and let us know how it goes!

Thank you for the message!

Post count: 5

Hi Catalin,

The catch here is I am not using the above divs for excluding ads, but for excluding contents. For instance, Parts of custom Code added in the template, so can not disable anything from Theme Panel.

Thanks.

Post count: 23312

Hello anujsri1,

Unfortunately, these divs are not designed to work only for Ads and not for content. The content you can hide with a bit of CSS -> display:none; and if you want to hide it only for the mobile mode you have to use media query for mobile -> @media (max-width:767px).

Let us know how it goes and if you need more assistance for this regard, please provide more details about what exactly do you want to hide.

Thank you for the message!

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