Advanced Customisations

Below you’ll find advanced customisations that aren’t included in theme settings.

Disable Sticky Header On Mobile

The following customisation will disable the sticky header below `768px` or in the case of Polestar Premium, below the point that the Mobile Menu Collapse field is set to.

  1. Install and active the plugin, Code Snippets.
  2. Go to SnippetsAdd New.
  3. Name your snippet: Disable Sticky Header On Mobile
  4. Insert the following code into the snippet body:
    if ( ! function_exists( 'polestar_child_body_classes' ) ) :
    function polestar_child_body_classes( $classes ) {
    	$classes[] = 'mobile-header-ns';
      	return $classes;
    }
    endif;
    add_filter( 'body_class', 'polestar_child_body_classes' );
    
  5. Finally, enable to only run the snippet on the site front end and click Save Changes and Active. It’s important to save and active and not just save.
  6. Once Code Snippets has been installed and activated you can also import and active this snippet by downloading the following file:

    Disable Sticky Header On Mobile Snippet

    Download the above the XML file (right click and save as) to your desktop and then import it from SnippetsImport.

Last updated: 19/10/2017