Jump to content
vekia

[module] PrestaShop 1.7 / 1.6 sticky header - FREE

Recommended Posts

Sticky header in PrestaShop 1.7 / 1.6

this is absolutely free module for PrestaShop 1.7 / 1.6 that creates sticky header in "classic" and "default bootstrap" themes and in all themes based on these templates.

Once you will scroll page a lttle down - module will stick header with menu to top edge of the browser window.

you can see demo here: check how sticky header works

 

fixed-sticky-header.png

 

prestashop-sticky-header-free.png

fixed-header-prestashop16-free.png

 

 

download links below.
Remember to download correct version!

fixedheader16.zip - for prestashop 1.6
fixedheader17.zip - for prestashop 1.7

 

 

 

fixedheader17.zip

fixedheader16.zip

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

I can develop it but it will work with "default bootstrap" theme and themes based on this theme,

its hard to develop universal solution because each theme is different

Share this post


Link to post
Share on other sites

Hello!

 

Could it work with Prestashop 1.6 ? :D

 

hello

it is for prestashop 1.7 currently

Share this post


Link to post
Share on other sites

Hello!

 

Could it work with Prestashop 1.6 ? :D

 

 

default bootstrap is sufficient

 

released version for 1.6.x for themes based on default-bootstrap 

enjoy :-)

  • Like 1

Share this post


Link to post
Share on other sites

I am using PS1.7

 

Any ideas how I can make header-nav sticky, as well as the header-top ?

 

As this module only does header-top.

 

Better still maybe an option on the setup screen for me to select either or both.

Share this post


Link to post
Share on other sites

currently module does not allow to select what elements will be a part of "sticky header"

header-nav + header-top are too big to create sticky heading feature so i decided to allow to stick only header-top.

  • Like 1

Share this post


Link to post
Share on other sites

Hello, first of all thank you very much for this great module, is very useful.

Unfortunately, it does not work fine in my 1.6.1.7 prestashop, it is conflicting with ajax cart popup.

When I add to cart a product from the category view, the ajax popup does not appear or appears partially out of view. It does not happen when I add to cart from the product view.

 

As soon as I deactivate the module the ajax cart works fine again.

 

It would be great if you can fix this, as it is a very good module that I believe can boost conversions. While I wait hopefully for your solution, I'm going to try to solve it by myself, if I'm succesful I'll post it here.

 

Thank you, best regards,

Share this post


Link to post
Share on other sites

More info about that. It happens also when I add to cart from the product view, but it does not disturb as much as in category view because the offset of the ajax popup is relative to the top of the page.

 

I've found a workaround, it is not perfect but it works.

 

Add the following lines to fixedheader.css:

 

#layer_cart {
  position:fixed!important;
  margin: 5% auto!important;
  top: 10px!important;
  left: 10px!important;
  right: 10px!important;
  bottom: 10px!important;
  overflow:auto!important;
  height:100%!important;
}

 

Best regards,

Share this post


Link to post
Share on other sites

More info about that. It happens also when I add to cart from the product view, but it does not disturb as much as in category view because the offset of the ajax popup is relative to the top of the page.

 

I've found a workaround, it is not perfect but it works.

 

Add the following lines to fixedheader.css:

 

#layer_cart {

  position:fixed!important;

  margin: 5% auto!important;

  top: 10px!important;

  left: 10px!important;

  right: 10px!important;

  bottom: 10px!important;

  overflow:auto!important;

  height:100%!important;

}

 

Best regards,

Thank you for the tip, works well!

 

 

I still using a default-bootstrap modified theme and for some reason something not work:

 

https://gyazo.com/cfc9772f01441c8f8f642a1f79b2087a

 

when scrollign the menu disappear completely:

 

https://gyazo.com/45cf9902d89575ce60565ec5ca599983

 

To get the your Menu module visible you have to modify fixedheader.css by replacing

.omg_img_scrolled #block_top_menu {
    display:none!important;

and paste this

.omg_img_scrolled #block_top_menu {
   padding:0px!important; 
}

Vekia

Could you please take a look to the problem issued by happohiken?

 

I'm also facing this issue and I've used his workaround to fix it meanwhile.

Thank you for the good job and I really appreciate your modules!

  • Like 1

Share this post


Link to post
Share on other sites

Hi Vekia,

I have modified my classic theme colors etc. but it remains the same theme, but the module doesnt work for me.. Any solution?

Thanks,

B

Share this post


Link to post
Share on other sites

Hi Vekia,

I have modified my classic theme colors etc. but it remains the same theme, but the module doesnt work for me.. Any solution?

Thanks,

B

 

Hi, 

I have installed the module, I use classic theme but it doesnt work.. nothing happens. Please help Vekia?

 

currently module does not allow to select what elements will be a part of "sticky header"

header-nav + header-top are too big to create sticky heading feature so i decided to allow to stick only header-top.

Share this post


Link to post
Share on other sites

Alguien sabe si en la versión 1.7 hay forma de habilitar n TOP BANNER gratuitamente como hasta la versión 1.6?

 

o en su defecto personalizar un link en el menú global para mandar a un sitio externo?

 

saludos.

Share this post


Link to post
Share on other sites

Hi Vekia, how to offset???? Have some problems with scrollto links.

 

$(document).ready(function () {
    $(window).scroll(function () {
        if ($(this).scrollTop() > 0) {
            $('#header').addClass("header_omg_im_scrolled");
        } else {
            $('#header').removeClass("header_omg_im_scrolled");
        }
    });
});

Share this post


Link to post
Share on other sites

It works awesomely but in checkout, it bugs and moves up and down like crazy. Can we find a solution?

 

Btw, vekia u are awesome.

Share this post


Link to post
Share on other sites

new version of fixed header is ready!

- added improvements to module usage in prestashop 1.7. When module is installed and enabled "quick product preview" is not covered by fixed menu anymore.

Share this post


Link to post
Share on other sites

Hello, I looked for this type of module and congratulate you.
I have however modifications has to make on my site and I installed him and uninstalled.

Since the deinstallation, my site slowed down a lot and by making the gmetrix test these elements appeared,

even after deinstallation and slows down him(it) a lot.

gmetrix : https://gtmetrix.com/reports/b-w-p-distribution.com/STxuADw2

Elements of the slowing down:

https://fls-na.amazon.com/1/batch/1/OP/A53RDEWN57UU5:257-7961038-4696744:VEY4BBNXBB3Z

And as you will see him(it), I have nothing in contact with amazon on my site, thus arrived with the module!
Thank you for your return

Ps: French translates with Reverso, thus if problems to announce me it.

Share this post


Link to post
Share on other sites
On 11/3/2017 at 8:53 AM, b-w-p said:

Hello, I looked for this type of module and congratulate you.
I have however modifications has to make on my site and I installed him and uninstalled.

Since the deinstallation, my site slowed down a lot and by making the gmetrix test these elements appeared,

even after deinstallation and slows down him(it) a lot.

gmetrix : https://gtmetrix.com/reports/b-w-p-distribution.com/STxuADw2

Elements of the slowing down:

https://fls-na.amazon.com/1/batch/1/OP/A53RDEWN57UU5:257-7961038-4696744:VEY4BBNXBB3Z

And as you will see him(it), I have nothing in contact with amazon on my site, thus arrived with the module!
Thank you for your return

Ps: French translates with Reverso, thus if problems to announce me it.

 

module "fixed headeR" is not related in any part to any kind of amazon scripts. 

the problem you have is not connected to this free module in any part.

Share this post


Link to post
Share on other sites

i updated the module.

added improvements related to module usage in prestashop 1.7.x, 
now when "quick preview" of product is active (modal window) - fixed header does not cover it, so "close" button for modal window is clickable again.

Share this post


Link to post
Share on other sites

Hi Vekia,

Thanks for this great Module. It' s simple, but very usefull. 

 

image.thumb.png.5869146134dda92d7122c34a5e41509e.png

Share this post


Link to post
Share on other sites

hi I should block the following selector:
#header .nav
#header .container .row
#block_top_menu

where can I, if I can, take action to make this change?

Share this post


Link to post
Share on other sites
On 6/11/2017 at 2:58 PM, vekia said:

i updated the module.

added improvements related to module usage in prestashop 1.7.x, 
now when "quick preview" of product is active (modal window) - fixed header does not cover it, so "close" button for modal window is clickable again.

Hi, the module work well, but I have found a problem, for my PS.1.7.

In small screen view (mobile), when I open top bar menu categories (on top to left), if I have the menu with a long list of categories and subcategories, when i scroll down for view last categories, i can not scroll down the menu, for to view last categories down, because it is fix with header.

Any solution?

Thanks

Edited by Daniele0884
  • Like 1

Share this post


Link to post
Share on other sites

does this work with all themes ? we need it for a client using a customised theme he bought on a marketplace

Share this post


Link to post
Share on other sites
On 6/3/2017 at 9:17 AM, vekia said:

Sticky header in PrestaShop 1.7 / 1.6

this is absolutely free module for PrestaShop 1.7 / 1.6 that creates sticky header in "classic" and "default bootstrap" themes and in all themes based on these templates.

Once you will scroll page a lttle down - module will stick header with menu to top edge of the browser window.

you can see demo here: check how sticky header works

 

fixed-sticky-header.png

 

prestashop-sticky-header-free.png

fixed-header-prestashop16-free.png

 

 

download links below.
Remember to download correct version!

fixedheader16.zip - for prestashop 1.6
fixedheader17.zip - for prestashop 1.7

 

 

 

fixedheader17.zip

fixedheader16.zip

 

Thank you for the module!! =)

Share this post


Link to post
Share on other sites
On 21.08.2018 at 10:02 PM, sytes said:

does this work with all themes ? we need it for a client using a customised theme he bought on a marketplace

I have the same issue, someone know how to solve it?

Share this post


Link to post
Share on other sites

For the ones who only want to use CSS

add these lines in your custom css:

#header{
    background: #ffed00;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .11);
}
#wrapper{margin-top: 100px;}

and this is what it looks like: https://www.blacknyellow.nl

Share this post


Link to post
Share on other sites

@vekia

Thank you very much for this module.

I have a suggestion, can you add the feature to reduce the logo size when scrolling down the same way as https://www.instagram.com/ did (on their web version not app).

Thank u.

Share this post


Link to post
Share on other sites
On 8/18/2018 at 3:34 PM, Daniele0884 said:

Hi, the module work well, but I have found a problem, for my PS.1.7.

In small screen view (mobile), when I open top bar menu categories (on top to left), if I have the menu with a long list of categories and subcategories, when i scroll down for view last categories, i can not scroll down the menu, for to view last categories down, because it is fix with header.

Any solution?

Thanks

Hi,

Have you found a solution to this problem ?

Thanks.

Best regards

 

Share this post


Link to post
Share on other sites

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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More