craigForo Active member Aug 10, 2017 #1 Is there a way to omit certain features for mobile devices, such as ad modules? But still be visible on desktop/tablets? I looked in the FAQ and searched around a bit and found nothing.
Is there a way to omit certain features for mobile devices, such as ad modules? But still be visible on desktop/tablets? I looked in the FAQ and searched around a bit and found nothing.
P Paul B XenForo moderator Staff member Aug 10, 2017 #2 You can use media queries: https://xenforo.com/community/resources/responsive-design.2193/ However, some ad providers prohibit hiding content in that manner and have special code for that purpose, for example: https://xenforo.com/community/resources/responsive-adsense.2084/ If you are using a different ad provider, you will need to enquire with them if they have a solution based on device or screen width. Upvote 0 Downvote
You can use media queries: https://xenforo.com/community/resources/responsive-design.2193/ However, some ad providers prohibit hiding content in that manner and have special code for that purpose, for example: https://xenforo.com/community/resources/responsive-adsense.2084/ If you are using a different ad provider, you will need to enquire with them if they have a solution based on device or screen width.
craigForo Active member Aug 11, 2017 #3 Actually, I'm not running ads in them, but rather a photo banner, interactive map, and a weather widget. Upvote 0 Downvote
Actually, I'm not running ads in them, but rather a photo banner, interactive map, and a weather widget.
P Paul B XenForo moderator Staff member Aug 11, 2017 #4 You should be fine to hide those using media queries then. Upvote 0 Downvote
craigForo Active member Aug 11, 2017 #5 I can see to wrap the ad_module to remove it from view, but nothing to remove it responsively for mobile devices. Last edited: Aug 11, 2017 Upvote 0 Downvote
I can see to wrap the ad_module to remove it from view, but nothing to remove it responsively for mobile devices.
R rdn Well-known member Aug 11, 2017 #6 I'm using BD Widget Framework addon for this thing. The latest beta release. Upvote 0 Downvote