Plugin to load theme if mobile and specific page

Try: add_filter(‘template’, ‘change_theme’); add_filter(‘option_template’, ‘change_theme’); add_filter(‘option_stylesheet’, ‘change_theme’); function change_theme($theme) { if ( wp_is_mobile() ) { $theme=”SelectThemeMobile”; } $page = get_page_by_title( ‘Title for 145’ ) if ( is_page($page->ID) and wp_is_mobile()) $theme=”SelectThemeOne”; // Replace name below with hook for missing stylesheet wp_enqueue_style( ‘registered name of missing mobile stylesheet’); } return $theme; } I believe you must iterate … Read more

Hiding menu on mobile only when viewing posts?

Assuming you are editing a child theme (or somehow protecting your changes from future update/over-writing) a very simple way to accomplish this is with a CSS rule that targets your mobile menu, then applies display: none to it. Using a combination of media queries and carefully written CSS selectors, you can target exactly the HTML … Read more

search in jquery mobile returns blank page

No comments but ill answer anyway for future clueless jqm developers as me. apparently (wasent clear for me base on my regular web dev experience) that if the destination is not a jquery mobile page it wont load and show blank… weird? or maybe there is other explanation that i didn’t noticed while deleting and … Read more

Making a custom CSS per mobile

You need use the wp_is_mobile() For example changing your style.css in the header.php <?php if ( wp_is_mobile() ) { /* Display and echo mobile specific stuff here */ } ?>