Home Forums Any Mobile Theme Switcher Altering settings for mobile theme Reply To: Altering settings for mobile theme

#1622

Hardley

we built a workaround for this, add this snippet to the functions.php file for your mobile theme;

NOTE: The /mobile/homepage is the path to your page in your site.

//Although the name says it does, this does not actually change the template, just the page
function mobile_template_redirect(){
if( is_front_page() ){
wp_redirect( home_url( ‘/mobile/homepage/’ ) );
exit();
}
}
add_action( ‘template_redirect’, ‘mobile_template_redirect’ );