WordPress.org

Support

Support » Themes and Templates » Switch header on mobile

Switch header on mobile

  • Hi,

    I’d like to switch header if device is mobile. I have this in my child themes page.php but no success:

    if ( wp_is_mobile() ) :
    	get_header( 'mobile' );
    else :
    	get_header();
    endif;
    ?>

    Using Buddyboss 3.1.6

    Any suggestions very much appreciated.

    Thanks,
    Paul.

  • The topic ‘Switch header on mobile’ is closed to new replies.