Home Forums WoodMart support forum How to disable lazy loading for custom cart icon?

How to disable lazy loading for custom cart icon?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #391769

    fineorganics
    Participant

    I want to make my cart more unique and change to my design. How to disable lazy loading for custom cart icon? Every time after uploading site my custom icon are reloading. How to make it like a other woodmart icon?

    #391815

    Hello,

    Do you want to disable the lazyload only for the custom cart icon or completely from the site?

    Best Regards.

    #391819

    fineorganics
    Participant

    Only for the custom icon. Earlier i disable it for custom category icon with JS, what i need to do? Maybe you make it default for icon?

    #391981

    Hello,

    Sorry but it’s not possible to disable the lazy loading for specific elements.
    It requires customizations and this is beyond our limitations and support policy.

    Best Regards

    #392002

    fineorganics
    Participant

    This is joke? A few month ago we disable lazy loading for category icon and today you say no for shopping card? Custom icon is not usable with lazy loading, connect to other support agent please

    https://xtemos.com/forums/topic/how-to-disable-lazy-loading-on-the-category-icons/

    #392012

    Artem Temos
    Keymaster

    Hello,

    Try to use the following code for the whole header part. It can’t be applied for this specific element, unfortunately.

    add_action(
    	'woodmart_after_body_open',
    	function() {
    		woodmart_lazy_loading_deinit( true );
    	},
    	1
    );
    
    add_action(
    	'woodmart_after_header',
    	function() {
    		woodmart_lazy_loading_init();
    	},
    	11
    );

    Kind Regards

    #392080

    fineorganics
    Participant

    Nothing changed, bug in code?

    #392090

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin and FTP access so we can check it?

    Thank you in advance

Viewing 8 posts - 1 through 8 (of 8 total)