Home Forums WoodMart support forum Bug on frontend

Bug on frontend

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #379368

    yumermutlu
    Participant

    https://prnt.sc/hyS5YKX8LQJg – This is in the incognito tab
    https://prnt.sc/BCBPxWmkfUr9 – This is how it should be and how it is for logged in admin users
    And the attached file is from my friends PC on different location

    Attachments:
    You must be logged in to view attached files.
    #379433

    Artem Temos
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    add_action(
    	'rocket_exclude_css',
    	function ( $excluded_files ) {
    		$upload   = wp_get_upload_dir();
    		$basepath = wp_parse_url( $upload['baseurl'], PHP_URL_PATH );
    
    		if ( empty( $basepath ) ) {
    			return $excluded_files;
    		}
    
    		$key = array_search( $basepath . '/elementor/css/(.*).css', $excluded_files, true );
    
    		if ( false !== $key ) {
    			unset( $excluded_files[ $key ] );
    		}
    
    		return $excluded_files;
    	}
    );

    Kind Regards

    #379960

    yumermutlu
    Participant

    This helped. I have one more problem that i can`t find the solution for. When loading a new page on a fresh browser on mobile sliders on the top of the page ( home and product page) stay blank until interaction (swipe, tap, click…) and I am afraid that could increase the bounce rate because the page looks blank

    #380100

    Artem Temos
    Keymaster

    It might be caused by “Delay JS” feature enabled in WP Rocket. Try to disable it and test how it works.

    Kind Regards

    #380141

    yumermutlu
    Participant

    Yeah but there are exclusions.
    jquery.min
    helpers.min.js
    clickOnScrollButton
    searchFullScreen
    menuOffsets
    menuDropdowns
    cartWidget
    mobileNavigation
    loginSidebar
    menuSetUp
    cart-fragments
    slick
    productImages
    cookie.min
    owl.carousel
    owlCarousel
    imagesLoaded
    /jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
    /jquery-migrate(.min)?.js
    /elementor/
    /elementor-pro/
    /wp-includes/js/imagesloaded.min.js
    ElementorProFrontendConfig
    elementorFrontendConfig

    What exclusion is needed so I don’t need to stop that setting?

    #380166

    Artem Temos
    Keymaster

    Hello,

    Try to add the following files

    flickity
    slider

    Kind Regards

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