How to disable the sticky menu on a specific page

Add the following code to your themes functions.php page to disable the sticky menu on a specific page.

In the example above we are detecting the “cart” page. You may find WordPress core functions including is_page, is_front_page and is_single useful in detecting the correct page to disable the sticky menu on.

Related Articles