Lucas
asked 9 years ago

Is there a way to switch to full website from mobile on a phone

I was wondering if there is a way to add a line of code or something I am missing that will let someone on a phone switch to the regular view you side on a computer screen or tablet if they so wish

3 Answers
Jennifer N
answered 9 years ago

Hi Lucas,
 Please replace line 14 :
    <meta content=”width=device-width, initial-scale=1.0, user-scalable=no” name=”viewport”>
by

    <?php if( ! isset($_REQUEST[‘viewport’]) ) { ?>
    <meta content=”width=device-width, initial-scale=1.0, user-scalable=no” name=”viewport”>
    <?php } ?>

Then when you add ?viewport=desktop in your url, your site will be viewed as desktio version

Thank
Jennifer

Lucas
answered 9 years ago

Ill plug that in when I get home tomorrow and see how it works!

thanks

Lucas
answered 9 years ago

Hey Jennifer,

Hopefully you guys check these again.  So I entered the info and it makes the site default to the desktop version without me adding anything into the url. So don’t see how to change it back and forth..

I do like the mobile view but I know some readers like the full view.

Powered by DW Question & Answer Pro