DMS 2 Are there going to be improvements to "Enable CSS Classes" -feature?


3 posts in this topic

Posted · Report post

Hi!

When I use the Pagelines Pro plugin and enable the css classes there are some issues. First, it says:

This will add classes to the page, for example a desktop PC using firefox would add: <body class="home blog ... ... desktop firefox">

 

...but actually adds them to the <html>. Not problem but might confuse users. Also I only get 

class="mac chrome chrome3 webkit webkit5 csstransforms csstransforms3d csstransitions"

on desktop and 

class="iphone safari safari7 webkit webkit5"

on iPhone.

 

So I don't get i.e. the "desktop" class, "ios" -class, "mobile"/"phone" -class or "tablet" -class. Also classes to detect touch -devices etc would be great!

What kind of technology are you using for the detection and do you think there will be improvements? The best one I believe is mobile detect http://mobiledetect.net/, but it needs PHP and might be an issue with caching. So I've used https://github.com/barisaydinoglu/Detectizr and have had great experiences.

Thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

I know the js version adds it to the html element, the plugin we use is here: http://jquery.thewikies.com/browser/

 

The PHP version is way better but like you said it messes with caching, unless of course you have mobile bypass setup correctly.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks. 
Are there any thoughts on on developing this further at some point? 
Detectizr could be very nice for example. Of course there might be loads of stuff with a bigger priority...

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now