Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #41307
    @rob72

    I want to get rid of the main header on the website and have the menu stick at the top when scrolling, but for the mobile theme to be unaffected. How is best to achieve this?

    Thank you in advance

    Answers

    #41312

    Alyssa
    Participant
    @alyssa-buddyboss

    @rob72 First thing you need to have the wpadminbar fixed, you cannot float it. Then under custom.css find the desktop section:
    @media screen and (min-width: 721px)
    Add this under that section:

    .header-inner{display:none;}
    .main-navigation{
      position: fixed;
      margin-left: -30px;
      padding-left: 30px;
    }

    This is not officially support but should not affect mobile. This should at least get you started.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Header’ is closed to new replies.