badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Header and primary menu fixed

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #42725
    Benjamin
    Participant

    Hey there,

    I need to fix header and primary menu at the top of the pages, that scrolling does not affect them. How could I do this with custom CSS?

    Br
    Ben

    #42840

    Hi Benjamin,

    To fix header and primary menu at the top of the pages go to Appearance -> Theme Options -> Design Options Tab -> Custom CSS paste the following CSS code and Click on save button:

    .hgroup-wrap,
    #access {
        position: fixed;
        width: 100%;
        z-index: 100;
    }
    .hgroup-wrap {
        background-color: #fff;
        top: 0;
    }
    #access {
        top: 105px;
    }

    Thank you!

    #42844
    Benjamin
    Participant

    Thanks a lot. It works very well. Is it also possible to show and fix slider bar?

    Br
    Ben

    #42846
    Benjamin
    Participant

    I’m afraid, but I saw that the first lines of the pages are missing.

    Br
    Ben

    #42926

    @mail16 Sorry! Please add below Custom CSS too

    .header-main {
        margin-top: 155px;
    }
    @media only screen and (min-width: 480px) and (max-width: 767px) {
    	.hgroup-wrap, #access {
    		position: fixed;
    	}
    	.header-main {
    		margin-top: 0;
    	}
    }

    Thank you!

    #42944
    Benjamin
    Participant

    Thanks guys!

    #42960

    You welcome Benjamin

    Thank you!

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