WordPress.org

Forums

Switch header on mobile (1 post)

  1. style960
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags