Altering settings for mobile theme

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 3 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1099

    Peter

    Hi, is it possible to view different front page (posts vs. static) for mobiles?

    Kind regards, Peter

    #1123

    Dinesh
    Keymaster

    Sorry, not yet in this version. We are going to keep this in coming version.

    #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’ );

    #1624

    Dinesh
    Keymaster

    I haven;t checked it yet but seems promising.

    Thanks a lot 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Altering settings for mobile theme’ is closed to new replies.