Advanced Customizations

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

Disable Sticky Header On Mobile

The following customization will disable the sticky header 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( 'siteorigin_corp_child_body_classes' ) ) :
    function siteorigin_corp_child_body_classes( $classes ) {
    	$classes[] = 'mobile-header-ns';
      	return $classes;
    add_filter( 'body_class', 'siteorigin_corp_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. Alternatively Import the Function

    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. The file is in ZIP format. Unzip the file and then import the XML file from SnippetsImport.