Home Forums WoodMart support forum Product layout sticky function bug Reply To: Product layout sticky function bug

#501735

Artem Temos
Keymaster

Hello,

Here is a code that can be used to init the sticky column function

	var $stickyColumn = jQuery('.wd-elementor-sticky-column > .elementor-widget-wrap');

	if ( $stickyColumn && $stickyColumn.data('sticky_kit') ) {
		setTimeout(
			function () {
				$stickyColumn.removeData('sticky_kit');
				$stickyColumn.trigger('sticky_kit:detach');
				$stickyColumn.stick_in_parent({
					offset_top: 20
				});
			},
			400
		);
	}

Kind Regards