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.