• Resolved thuanvnnet

    (@thuanvnnet)


    Attached image file prettyPhoto Does not work with flatsome theme. Please guide me for it to work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well! ??

    Please, add this custom code in the functions.php of your active theme:

    if( ! function_exists( 'yith_wcar_enqueue_back_required_assets' ) ) {
    	function yith_wcar_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 );
    
    	}
    	add_action( 'wp_enqueue_scripts', 'yith_wcar_enqueue_back_required_assets', 100 );
    }

    Let us know!

    Thread Starter thuanvnnet

    (@thuanvnnet)

    Thanks. It worked

    Thread Starter thuanvnnet

    (@thuanvnnet)

    I want to use verified default woocommerce. Can I do it?

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    Thanks for contacting us and we hope you’re doing well ??

    About your question:

    Yes, you can use verified default WooCommerce. You need to enable the option on

    WooCommerce > Settings > Product

    And enable the following option:

    Reviews can only be left by “verified owners”

    We hope it helps you.

    Have a good day.

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,?

    hope you are doing well!???
    ?
    Seem that this topic doesn’t have any activity, so we think that you have no more doubts and we will proceed to close it.

    Anyway, if you have any issues don’t hesitate to contact us.

    Have a great day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘prettyPhoto does not work’ is closed to new replies.