Disable Customizr(-Pro) sticky header in mobiles


Note :This snippet works only with the Classical style option. The Classical style option can be enabled in Appearance > Customize > Advanced > Theme Style. More about the theme style option here


The sticky header is a cool feature we all love :). Though we might find it useful just in desktop browsers and we would like to keep the static header in mobiles.

Here’s a simple snippet to add to your child-theme functions.php in order to achieve that.

 

This snippet just uses one of the large amount of the filters Customizr and Customizr-Pro provide plus a WordPress’ built-in function which checks whether or not you’re visiting the site on a mobile device (tablet included).

Where to copy/paste this code?
Add it to your child-theme functions.php.
Everything you need to know about creating a child theme with Customizr here.

Goodbye and goodluck


Related Snippets you may also like


We can help you to implement this snippet

Coding is our job and we know WordPress inside and out. We can help you to customize your website with small chunks of code snippets like this one.

Send us your request and we'll get back to you quickly.



5 thoughts on “Disable Customizr(-Pro) sticky header in mobiles

Comments are closed.