• Hello,

    have a problem with your plugin. When I activate it Google Search console gives me a mobile-friendly error. Here is a screenshot of that error. https://ibb.co/SrR8Yr5 When I turn it off, everything looks good.
    There are no visual changes, just errors in GSC. The plugin now is turned off. Can you have a look, please?

    • This topic was modified 2 years, 11 months ago by webdy.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    hope you’re doing well!

    Without having the plugin activated it is difficult to see what is happening, since in our installation everything works correctly. Although from what I see, maybe some styles files are missing from our plugin. Try adding this code to your active theme’s functions.php file and see if the problem persists:

    if ( defined( 'YITH_WCWL' )) {
    	if( ! function_exists( 'yith_wcwl_enqueue_back_required_assets' ) ) {
    		function yith_wcwl_enqueue_back_required_assets() {
    			$suffix  = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    			$version = defined( 'WC_VERSION' ) ? WC_VERSION : '';
    
    			wp_enqueue_style( 'woocommerce_prettyPhoto_css', plugins_url( 'assets/css/prettyPhoto.css', WC_PLUGIN_FILE ), array(), $version );
    			wp_enqueue_script( 'prettyPhoto', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), '3.1.6' );
    			wp_enqueue_script( 'prettyPhoto-init', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), $version );
    
    			wp_enqueue_style( 'yith-wcwl-main', YITH_WCWL_URL . 'assets/css/style.css', array( 'jquery-selectBox' ) );
    		}
        	add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_back_required_assets', 100 );
    	}
    }

    Let us know any news, please.

    Have a nice day!

    Thread Starter webdy

    (@webdy)

    Hello,

    thank you, but it didn’t help. Now the plugin is active, so you maybe can see where is the problem.

    Domas

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello Domas,

    Have you updated the plugin to the latest version?

    Could you verify if the problem persists by leaving only our plugin and WooCommerce active? We have entered your site but we see that everything works correctly. Are there any elements that are being affected when you activate our plugin? We’ve been reviewing several sections from the mobile view, but we don’t see anything strange.

    We will be attentive to your response.

    Best regards.

    Thread Starter webdy

    (@webdy)

    Hello,

    yes, your plugin is up to date.

    There are no visual bugs, I can see that only on GSC.

    Domas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mobile friendly GSC’ is closed to new replies.