Child theme with multisite with subdomains

  • Mandado

    #9021

    Hello,

    I have a multisite with 2 subdomains plus the normal domain.

    When setting up the mobile version in the subdomains the child theme doesn’t seem to work. Any ideas why?

    The “only” thing I want to do from the functions file is this:

    <?php
    function redirect_home_to_blog_mobile() {
    if ( is_front_page() ) {
    wp_redirect ( get_permalink( get_option( 'page_for_posts' ) ) );
    exit;
    }
    }
    add_action('template_redirect', 'redirect_home_to_blog_mobile');

    ?>

    I set that up correctly long time ago for my main blog: https://forum.graphene-theme.com/gmneo-support/non-static-homepage-for-mobile-version

    But now when trying to set it up for the en.xxx.com and lv.xxx.com it doesn’t work.

    Admin

    Syahir Hakim

    #42596

    What is the actual links for the two subdomains? Have you assigned the child themes as the mobile themes for those two subdomains?

    Mandado

    #42597
    Quote:
    What is the actual links for the two subdomains? Have you assigned the child themes as the mobile themes for those two subdomains?

    The subdomains are lv.thecrazytravel.com and en.thecrazytravel.com.

    Not sure if it is assigned the child themes as mobile themes for those two subdomains, how do I make sure it is assigned?

    Thanks.

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

You must be logged in to reply to this topic.