• Resolved antoinedavidss

    (@antoinedavidss)


    hello I add the code to display review of the blow I lost the posting of QUESTIONS AND ANSWERS
    Here is my code
    `
    remove_filter ( ‘woocommerce_product_tabs’, array( YITH_WooCommerce_Question_Answer::get_instance(), ‘show_question_answer_tab’ ), 20 );
    if (class_exists(‘YITH_WooCommerce_Question_Answer’)){
    if (!function_exists(‘yith_ywqa_show_questions_and_answer’)){
    function yith_ywqa_show_questions_and_answer(){
    $instance = YITH_WooCommerce_Question_Answer::get_instance();
    $instance->show_question_answer_template();
    }
    add_action ( ‘woocommerce_after_single_product_summary’, ‘yith_ywqa_show_questions_and_answer’ );
    }
    }
    function mytheme_add_woocommerce_support() {
    add_theme_support( ‘woocommerce’ );
    }
    add_action( ‘after_setup_theme’, ‘mytheme_add_woocommerce_support’ );

Viewing 1 replies (of 1 total)
  • Thread Starter antoinedavidss

    (@antoinedavidss)

    i delete this and it’s work
    remove_filter ( ‘woocommerce_product_tabs’, array( YITH_WooCommerce_Question_Answer::get_instance(), ‘show_question_answer_tab’ ), 20 );
    if (class_exists(‘YITH_WooCommerce_Question_Answer’)){
    if (!function_exists(‘yith_ywqa_show_questions_and_answer’)){
    function yith_ywqa_show_questions_and_answer(){
    $instance = YITH_WooCommerce_Question_Answer::get_instance();
    $instance->show_question_answer_template();
    }
    add_action ( ‘woocommerce_after_single_product_summary’, ‘yith_ywqa_show_questions_and_answer’ );
    }
    }
    function mytheme_add_woocommerce_support() {
    add_theme_support( ‘woocommerce’ );
    }
    add_action( ‘after_setup_theme’, ‘mytheme_add_woocommerce_support’ );

Viewing 1 replies (of 1 total)
  • The topic ‘conflit with add_theme_support( ‘woocommerce’ );’ is closed to new replies.