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 (see edit history)
  • 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
On 2/25/2019 at 3:29 PM, Prestashop user said:

Hi,

Have you found a solution to this problem ?

Thanks.

Best regards

 

Also searching for a solution to this

Share this post


Link to post
Share on other sites

Don't work with prestacrea 1.7 theme.

however the menu is dependent on the default menu. But as it is improved there may be a problem.
It does not even fix the header at all.

Share this post


Link to post
Share on other sites
Posted (edited)

Hi guys.

If someone have problem with jump after scroll-down form top on Prestashop 1.7.6 using this module (Fixed sticky header by Vekia) I managed to find the solution.

To be specific, this problem occurs exactly when fixed header start to work. The site is being instantly scrolled down creating this annoying jump. This work in both sides, so if you will scroll up to top it will jump also.

To fix this you will need to modify two files: fixedheader.js and fixedheader.css located in: modules/fixedheader and follow steps below.

Inside fixedheader.js replace 'body' with '#wrapper' in lines 16 and 19. The final code should look like this:

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

Next, open fixedheader.css, scroll to the bottom and replace section:

@media (min-width: 576px){
    .omg_im_fixed .modal-dialog {
        margin-top:130px!important;
    }
}

with this code:

@media (min-width: 576px){
    #wrapper.omg_im_fixed {
        padding-top:130px!important;
    }
}

It should get rid of that annoying jump after scroll-down from top and back to top. Keep in mind this is not official fix, so might not work for everyone. Feel free to try, I hope I helped someone :)

Edited by altaiir123 (see edit history)

Share this post


Link to post
Share on other sites

Hi Vekia,

thank you very much for this module, it is very useful.

Is it possible to switch off it for mobile version?

Thanks,

 

Martina

Share this post


Link to post
Share on other sites

You can switch off mobile version of every module from backoffice.

Just press the arrow next to configure button in module manager and select "disable mobile". 

Share this post


Link to post
Share on other sites
2 minutes ago, altaiir123 said:

You can switch off mobile version of every module from backoffice.

Just press the arrow next to configure button in module manager and select "disable mobile". 

Thank you very much! I thought that it will be more difficult :) I´ve never need this function before.

Share this post


Link to post
Share on other sites

Hi!

Thanks for this module, its great, but, i have a problem, when I slide, I download the menu along with the carousel of images too, how can I solve this?

Thanks and sorry for my english.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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