0

I have wordpress theme and I would like to add a popup when visitor get into my website from mobile and ask him if he wants to see the site mobile mode or desktop mode.

How can i make it? Do i need 2 different sites or can I make it on the same site with 2 CSSs files?

I would like to hear any other suggestion. Thank you

4
  • Go read up on CSS Media Queries. This doesn’t need a popup nor “asking” the user.
    – CBroe
    Jan 25, 2015 at 6:29
  • With CSS Media Queries I can give the user to deside which css he style he wants to see?
    – YossiH
    Jan 25, 2015 at 7:15
  • No, the browser makes that decision automatically.
    – CBroe
    Jan 25, 2015 at 7:22
  • This can be done and has been done, just not simply if you are new to php. Take a look at dev.eyedea.eu/samples/styleswitch-php, which is pure php and not wordpress, but it will be a good stating point. You will have to edit your theme or create a plugin. I have done this a few years back for a regular php site. Jan 25, 2015 at 7:23

1 Answer 1

-1

I am using WPtouch Mobile plugin. It automatically enables mobile theme for mobile visitors. Here is the plugin which helps you to create pop up for your visitors. wordpress.https://wordpress.org/plugins/wordpress-popup/ .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.