mermberfix logo x200 - How To Make Your Header Stick To The Top Of The Page In OptimizePress
The MemberFix Team’s got you covered.
Membership plugins

How To Make Your Header Stick To The Top Of The Page In OptimizePress

how to make your header stick to the top of the page in optimizepress - How To Make Your Header Stick To The Top Of The Page In OptimizePress

One way of giving your site a professional look is to make the header ‘stick’ to the top of the page. To see an example of this ‘sticky header’, click HERE (opens in a new window).

With OptimizePress you can do this either on a page-by-page basis or site wide. To implement this sticky header for your entire site, go to your WordPress dashboard then:

OptimizePress =>Dashboard => Custom CSS

Click ‘Custom CSS’ and enter the following:

.banner {
padding: 0px 0px;
}

.banner {
position: fixed;
width: 100%;
top: 0;
left: 0;
border-top: 0px solid #ffffff;
border-bottom: 0px solid #ffffff;
background: #fff;
vertical-align: top;
-webkit-box-shadow: 0px 4px 22px 0px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 4px 22px 0px rgba(50, 50, 50, 0.75);
box-shadow: 0px 4px 22px 0px rgba(50, 50, 50, 0.75);
z-index: 999999;
}

If you only want to do this on certain pages, open your page in the Live Editor, click on Page Settings => Other Scripts => Custom CSS and enter the code there.

Now whatever navigation menu you had in place for that page will ‘stick’ to the header as your visitors scroll down the page.

You may also enjoy...

WordPress based membership sites have certain requirements, and make use of certain applications that, in my experience, makes most of the popular hosting providers a poor choice.
WPForo doesn’t play nice with MemberMouse out of the box. So we’ve come up with a simple solution to make it work! Code snippet included… :)
Learn how to hide or move your post or page title in the Divi Theme without affecting your category view or creating duplicate titles.
Learn how to display same comments list and form on multiple pages.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments