Regarding the Kampina website theme

Support Forums Kampina Regarding the Kampina website theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #247
    KEN1911
    Participant

    Hello, the default setting for this theme is that the menu bar will be hidden when the page scrolls. However, I would like to have the menu bar on all pages of the website remain fixed at the top, and the same applies to the mobile version as well. Could you please advise on how to handle this? Thank you very much!!

    #248
    TigriWeb
    Keymaster

    Hi Ken,

    You can fix this by adding the following CSS code under Appearance → Customize → Additional CSS:

    .site__header {
    	position: sticky !important;
    	top: var(--wp-admin--admin-bar--height, 0px);
    }
    .site__header__sticky-area {
    	background-color: var(--kampina--color--header-bg) !important;
    }
    
    .header-is-fixed .site__header__content::after {
    	content: none;
    }
    @media screen and (max-width:600px) {
    	#wpadminbar {
    		position: fixed;
    	}
    }

    This will make the header sticky on all pages as well.

    Best regards,
    TigriWeb Team

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.