Jump to content

Archived

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

mckdesign

Browser Detection jQuery method adding classes to HTML tag, not Body

Recommended Posts

mckdesign

Hi. I saw the added jQuery choice for adding Body classes. It's ideal for me on WPEngine, except it's adding the classes to the HTML tag, not Body. I see it by using the Inspect Element tools, not View Source.

 

Also note that it doesn't seem to be adding the Device class. For example, Firefox on my PC displays added classes to the HTML tag of "win firefox firefox2 gecko gecko2", but doesn't add "desktop".

 

Consequently, some stuff isn't displaying quite right in IE8. Does all conditional CSS need to be re-written for this change to using the HTML tag? I'm a bit loathe to change the JS file in a plug-in.

 

example site: http://uspharmamktg.wpengine.com/

DMS 2.0.4

Pro Tools 1.5.4

 

Thanks for any insights and tips how to better use this new feature.

 

 

 

 

Share this post


Link to post
Share on other sites
Simon

Yea, the js plugin adds it to the html tag, same thing, still works ;)

 

No it does not check for devices, would need a lot more logic added to do that, its very basic at the moment.

Share this post


Link to post
Share on other sites
mckdesign

Got it. I'd thought that the Device-type class was being used by DMS.

 

Thanks, Simon.

Share this post


Link to post
Share on other sites

  • Similar Content

    • 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!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×