How to disable ONLY tablet mode

Latest Reply from miranda at 2013-09-23 13:42:03 Solution
Hi all,

I'm trying to disable only the tablet mode in my Retropress theme, because the mobile mode is really good, and I wanted to keep it.

By reading the instructions on http://smthemes.com/support/topic/howtodisablemobileandtabletmodes/ I imagined I could do the same just for tablet.

On library.php, I have tried to change this
<link rel="stylesheet" href="<?php echo get_template_directory_uri()?>/css/tablet.css" type="text/css" media="screen and (min-width:640px) and (max-width:1023px)" />


Into this:
<link rel="stylesheet" href="<?php echo get_template_directory_uri()?>/css/wide.css" type="text/css" media="screen and (min-width:640px) and (max-width:1023px)" />


But that still isn't working. Can someone please give me a help?
Hi!
To disable only Tablet version you should use the following instrucion:

1) delete the following string in the file library.php:
<link rel="stylesheet" href="<?php echo get_template_directory_uri()?>/css/tablet.css" type="text/css" media="screen and (min-width:640px) and (max-width:1023px)" />

and replace the string:
<link rel="stylesheet" href="<?php echo get_template_directory_uri()?>/css/wide.css" type="text/css" media="screen and (min-width:1024px)" />

with:
<link rel="stylesheet" href="<?php echo get_template_directory_uri()?>/css/wide.css" type="text/css" media="screen and (min-width:640px)"


2) replace the following string in the file style.css :
@media only screen and (min-width:1024px) {

with:
@media only screen and (min-width:640px) {


and delete the code from the string:
/*	-==========================- TABLET -==========================-  */

up to this line:
/*	-==========================- MOBILE -==========================-  */
Alice, it worked like a char. Thank you very, very much!!! :)
*charm
I've done this and it works for Chrome for iPad but with the new update of ios7, Safari pulls the MOBILE version and ZOOMS it in to fit the screen of my iPad... how can I fix this? Although it might just be a problem with Safari and not necessarily on the theme's end.

Leave a reply

Add codeAdd image