Fixed header only in the main page - by javigilta

This topic has 2 replies, 2 voices, and was last updated 6 years, 2 months ago ago by Olga Barlow

  • Avatar: javigilta
    javigilta
    Participant
    September 20, 2018 at 16:17

    Hi,

    I would like to fix the header, but only in the main page… is that possible?

    Thanks!
    Javi

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 20, 2018 at 17:23

    Hello,

    You can do this using custom CSS. Go to Theme Options > Header > Fixed Header > enable fixed header.
    Then go to Custom CSS area and add the following code

    .woocommerce:not(.home) .fixed-header.fixed-enabled, .page:not(.home) .fixed-header.fixed-enabled, .blog:not(.home) .fixed-header.fixed-enabled, .single-post:not(.home) .fixed-header.fixed-enabled {
      display: none;
    }

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.