Support » Plugin: Plugin Name: Device Theme Switcher » Not working on Sony Xperia X10 and Motorola Droid Razr

  • Resolved wrip

    (@wrip)


    I was testing this plugin. It works great on most of the devices. I was testing the device emulators with Browserstack. I’ve noticed an issue with Sony Xperia X10 and Motorola Droid Razr. On these devices, it looks like the stylesheets are not loaded. Not sure if it is an issue with this plugin or is this something else? Could you please advise?

    https://wordpress.org/plugins/device-theme-switcher/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author James Mehorter

    (@jamesmehorter)

    Hi wrip,

    This sounds like a theme issue. Does your theme happen to be a child theme?

    If so, you may be using ‘get_template_directory_uri()’ when you should be using ‘get_stylesheet_directory_uri()’.

    https://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri

    Hi James
    Thanks for your reply. I found the solution. It was nothing to do with the stylesheet directory uri. I had the bootstrap CSS and JS files loaded from CDN. For some reason the above devices were not reading those from CDN. I then moved the files into the server and everything started working.

    I was testing through Browserstack. Perhaps some of the emulator devices there were a bit slow or had some issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working on Sony Xperia X10 and Motorola Droid Razr’ is closed to new replies.