Jump to content

Archived

This topic is now archived and is closed to further replies.

ketri

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

Recommended Posts

ketri    7
ketri

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
Simon    247
Simon

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
ketri    7
ketri

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

  • Similar Content

    • huskers2011
      By huskers2011+
      I have a pro account that I used on my test site ( located on a sub domain) now that I have moved the site to the main domain, the pro will not activate.
    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
×