Site logo

Archived topic

How can i create a fixed Header and top Menu in the Generate Press Theme

83 replies · Started by Marco Aliberti on September 18, 2014

Viewing posts 76–84 of 84

The full header? No. You can do the main navigation and add a logo to it though.

Typically, headers are way too tall to stick to the top of the screen. People using smaller screens/tablets/mobile will barely see any content and will only see the sticky header.

Thanks, Leo ... Yes, works perfect!

No problem!

hi, i used above and it worked fine. But, now my header and nav is not showing. what numbers do i need to change to fix? my header is 50pixels.
http://www.sandisamples.com

my custom code is:

/*
You can add your own CSS here.

Click the help icon above to learn more.
*/

h1, h2, h3 {
text-align: center;
line-height:1.7em;
margin-bottom: 0px;
}
table, th, td {
border: 0px solid rgba(0, 0, 0, 0);
}
.advanced-sidebar-menu ul {
line-height:13px;
}
.advanced-sidebar-menu li.current_page_item{
color: #b20738;
}
.right-sidebar .widget {
background-color: #ffffff;
}
hr {
background-color: rgba(0, 0, 0, 0.1);
border: 0 none;
height: 1px;
margin-bottom: 15px;
margin-top: 5px;
}
.entry-content, .entry-summary, .page-content {
margin: 0em 0 0;
}
.custom-fixed-footer {
position: fixed;
bottom: 0;
width: 100%;
z-index: 2000;
}

body {
margin-bottom: 80px;
}
.custom-fixed-header {
position: fixed;
top: 0;
width: 100%;
z-index: 2000;
}

.custom-fixed-header + * {
padding-top: 0px;
}

/*
body.page-id-150 {
background-color: #8190ae;
}

.page-id-150 .inside-article {
background-color: #8190ae;
}
.one-container .site-content {
    padding: 0;
}
*/

Hi there,

Do you mind opening a new topic as this one is already so long?

Thanks!

Tom or Leo,

trying to do the apple menu at the top of the apple site
black background with white text and grey highlight when selected...
but how can i do this without going to elementor canvas and saving template for nav menu to appear at the top and also to show copyright info in footer? i am relying too much on elementor to do this I think - perhaps there is easier method from generatepress premium which i have

thx

Hi there,

Do you mind opening a new topic as this one is already so long?

Thanks!

This archived topic is closed to new replies.