Home › Forums › Any Mobile Theme Switcher › Altering settings for mobile theme
This topic contains 3 replies, has 2 voices, and was last updated by Dinesh 4 years, 9 months ago.
-
AuthorPosts
-
April 19, 2013 at 5:37 pm #1099
PeterHi, is it possible to view different front page (posts vs. static) for mobiles?
Kind regards, Peter
April 21, 2013 at 3:28 pm #1123Sorry, not yet in this version. We are going to keep this in coming version.
July 3, 2013 at 12:30 am #1622
Hardleywe 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’ );July 3, 2013 at 2:56 am #1624I haven;t checked it yet but seems promising.
Thanks a lot 🙂
-
AuthorPosts
The topic ‘Altering settings for mobile theme’ is closed to new replies.