Reply 324000 to: Sticky Add To Cart Bar on all sections except the add2cart

Avatar: Olga Barlow
Olga Barlow
Support staff
May 16, 2022 at 13:30

Hello,

1) There is no option to make only the add to cart form sticky in our theme.
You can try to implement it by additional customization if you have some JS and CSS skills (because additional customization is not included in our support). For example, you can add a custom script

$(window).scroll(function(){
      if ($(this).scrollTop() > 135) {
          $('.single-product .cart').addClass('cart-fixed');
      } else {
          $('.single-product .cart').removeClass('cart-fixed');
      }
  });

and custom styles in addition

.cart-fixed {
    position: fixed;
    background: #fff;
    z-index: 1;
    top: 120px;
    padding: 20px !important;
    border: 1px solid #f0f0f0 !important;
}

2) We have added custom code to child theme functions.php to disable the gallery slider for the mobile. Check now, please.

add_action ('wp', function(){
	add_filter ('theme_mod_product_gallery_type_et-desktop', function ($value){return 'one_image';}, 50);

}, 70);

3) We enabled you the Move Product Name in Breadcrumbs option -> https://prnt.sc/IR2fBp1NPBCv and rewrote woocommerce/single-product/title.php in your child-theme with the next changes -> https://prnt.sc/BMIVUep2DDpx
Check the breadcrumbs now.

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.