Skip to content

sticky-kit not working my product page.? #273

Description

@monparaashvin

code but not working my js file
` $(window).on('load resize', function () {
var product_summery_sticky = $(".single-product-page .single-product-info");
var product_images_sticky = $(".single-product-page .f-image .single-product-image");
var product_summery_sticky_height = product_summery_sticky.height();
var product_images_sticky_height = product_images_sticky.height();

    if ($(window).width() > 768) {
        var offset = 15;
            if(product_summery_sticky_height > product_images_sticky_height){
                product_images_sticky.stick_in_parent({
                    offset_top: offset
              });
            }
              if(product_summery_sticky_height < product_images_sticky_height){
                product_summery_sticky.stick_in_parent({
                    offset_top: offset
              });
            }
    } else{
                product_images_sticky.trigger('sticky_kit:detach');
                 product_summery_sticky.trigger('sticky_kit:detach');
            }
    }
});`

screenshot:-https://prnt.sc/qslu8j

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions