Static page for desktop or mobile
I used this: <?php if ( wp_is_mobile() && is_front_page() ) { wp_redirect( ‘http://www.example.com’, 301 ); exit; } ?> in header.php of theme.
I used this: <?php if ( wp_is_mobile() && is_front_page() ) { wp_redirect( ‘http://www.example.com’, 301 ); exit; } ?> in header.php of theme.
It was because of a plugin called Easy Social Sharing Buttons version 3.5 I bought from Code Canyon. It is quite feature rich and may slow down your website. I would not say you should avoid it but I would advise you to do an extensive research that your website is running fine on different … Read more
Did you contact the theme’s support? They should be able to help you out as it seems to be an issue with the theme.
function mobile_redirect() { if (isset($_COOKIE[“redirected”]) && $_COOKIE[“redirected”]) return; global $is_iphone; if( isset($is_iphone) && $is_iphone ) { wp_redirect( ‘/mobile/’ ); setcookie(“redirected”, true); exit; } } add_action(‘init’, ‘mobile_redirect’); This code redirects every mobile visitor to /mobile/ and then sets a cookie that the user is redirected. If the cookie is set, then the redirect doesn’t take place. … Read more
You have 3 choices choose a Responsive Theme for your site (Responsive adapts for different screen sizes) choose a plugin (such as WPTouchPro – which is both plugin and theme) build a second site which you access at m.example.com, this duplicates all the content and has its own theme … there is a 4th option … Read more
I can see that the div with id of wrapper has it’s width set in the CSS. It should have width of auto. I can see that the page that works (the one you provided a link for), the body has a class under which the div width id wrapper has it’s width set to … Read more
Yes, you shouldn’t use it in your theme. It’s used in WP core on administration side for adding touch scripts, mobile button etc. It’s very dumb, it just detects User Agent string which can anybody change. And the biggest why not to use it is that you can have a trouble if you use it … Read more
Often times even if we have setup our media queries correctly, the site still isn’t responsive to those queries. You need to set a viewport in your header.php to fix this. More often than not I find that this affects macs instead of PCs. but it’s still a good idea to add this no matter … Read more
Mobile theme not showing correct page after custom re-writes
Elements floating on top of each other when Resizing or checking site on mobile. Twenty Twelve