New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Platform?
css media queries for a containing div?
Depend on your CMS Platform , if bootstrap then not so possible, but if you have different template for mobile and desktop version then it is possible.
PHP.
http://pastebin.com/XeZ4LXdc
Disclaimer: This script contains slightly modified code from https://mobiforge.com/design-development/lightweight-device-detection-php.
I don't think you're allowed to show/hide adsense ad thru css/javascript.
It is kinda frowned upon, its better to just not call it.
Depending what template it is they could just match the useragent to a mobile true/false and then just not echo it.
if your web use wordpress, you can use wpmd plugin. you also able to define ads for both desktop or mobile devices using wpmd.