• Resolved rooftopmovies

    (@rooftopmovies)


    Hi, we have installed the yith wishlist plugin on our website. We are using the Woodmart theme with elementor. Unfortunately, the whole layout, styles etc is broken or something. Take a look here https://snipboard.io/621bju.jpg As you can see the layout is not compatible. The page is in Greek.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there,
    we hope you’re doing well!

    Could you share the link to your site if you have the plugin active?

    Anyway, try adding the following code to your active child theme’s functions.php file and see if the display issue is resolved please:

    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 );
    			if ( ! wp_script_is( 'jquery-yith-wcwl-user', 'registered' ) ) {
    				wp_enqueue_script( 'jquery-yith-wcwl' );
    			} else {
    				wp_enqueue_script( 'jquery-yith-wcwl-user' );
    			}
    
    			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', 9999 );
    	}
        if ( ! function_exists( 'ywfav_add_fontawesome' ) ) {
    		function ywfav_add_fontawesome() {
            	wp_enqueue_style( 'fontawsome', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
        	}	
    		add_action( 'wp_enqueue_scripts', 'ywfav_add_fontawesome', 99 );	
    	}
    }

    Let us know any news.

    Best regards.

    Thread Starter rooftopmovies

    (@rooftopmovies)

    Somehow better but still not ready to use it. I will use it on a subdomain as the main site is live and i can’t take the risk.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Broken style layout’ is closed to new replies.