Jump to content

[SOLVED] - Mantain fixed Top header banner in Prestashop 1.6.0.14


Javi Ferrer

Recommended Posts

Hi there, 

 

I would like to mantain fixed or scroll top header banner, (only top banner) and not all header. I have read some post about mantain completely header or/and menu. I'm want mantain only top promotional banner. Any idea how can I do it?

 

Prestashop version 1.6.0.14.

Edited by Valentin Yonte (see edit history)
Link to comment
Share on other sites

Thank's Ambassador. I found the solution. and I share here:

 

I modify file global.css on Theme css folder

 

Around line 2219 on Theme folder/css/global.css added:
 
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
padding-top: 50px   <----
  }
}
 
Aroud line 5511 on Theme folder/css/global.css added:
 
header .banner {
  z-index: 999999999;  <-----     
  position: fixed;            <-----
  width: 100%;               <-----
 background: black;
 max-height: 100%;      <-----
}
 
I got
1. Fix/scroll the top banner when you scroll down on page.
2. Mantain the Top Nav menu
 
It's desirable that Prestashop guys add an option in Modules > Theme configuration > Show Top Banner, an option to lock/fix Top banner".  :)
 
I solved the issue.
 
Thank you.
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...