WP page 404 error only on mobile
I solved this. I had the page in draft mode. Hence, it was only showing when I was logged in.
I solved this. I had the page in draft mode. Hence, it was only showing when I was logged in.
Try media query like @media only screen and (max-width: 768px) { /* For mobile phones: */ /* YOUR MOBILE STYLE HERE */ } Hope it will help!
You can: Setup a child theme and override the screen-reader styles using a more specific CSS rule Setup a child theme and override the header / menu and remove that css class Try and see if there is a hook to allow you to change the markup for this button (you may need to contact … Read more
I think it’s fairly easy to figure out this one if you read around. You’d need to login to your site dashboard as admin -> site.com/wp-admin, Navigate further to Appearance -> Menus from left side menu bar. In Menu section you need to create 2 Menus for your Top Menu and Header Menu. Top menu … Read more
It seems like your theme may be using the wp_is_mobile function incorrectly as it should not be used for theme specific styling, etc and is also unreliable as it only inspects the browser User-Agent. As I don’t know what your theme is, I cannot say for definite if that is the case but see this … Read more
Switching the actual template file could work in the same way as above using get_template_part(). For example… <?php if ( wp_is_mobile() ) { // If it is a mobile device get_template_part( ‘mobile-front’, ‘page’ ); } else { // If it is not a mobile device get_template_part( ‘desktop-front’, ‘page’ ); } // end wp_is_mobile() To take … 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
No, you have to fix the plugin code. Also, send a bug report to the plugin author. I’m sure she wants to improve the plugin.
So instead of creating a theme for it i ended up using the template_redirect with an if statement to check the url for a certain thing. function page_redirect() { if ($_SERVER[‘REQUEST_URI’] == $home . ‘/other-sites’) { require(TEMPLATEPATH . ‘/includes/other-sites.php’); } if ($_SERVER[‘REQUEST_URI’] == $home . ‘login’) { require(TEMPLATEPATH . ‘/includes/login.php’); } } add_action(‘template_redirect’, ‘page_redirect’); Simply … Read more