Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter questionabout

    (@questionabout)

    Hi there, I also removed the description away from tabs using this code:

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    
    function woo_remove_product_tabs( $tabs ) {
     unset( $tabs['description'] ); 
    
        unset( $tabs['reviews'] ); 			// Remove the reviews tab
        unset( $tabs['additional_information'] );  	// Remove the additional information tab
    
        return $tabs;
    
    }
    function woocommerce_template_product_description() {
       woocommerce_get_template( 'single-product/tabs/description.php' );
     }

    What would be the best way to add FAQs below out of tabs?
    I think it needs to look like this:

    function woocommerce_template_product_description() {
       woocommerce_get_template( 'single-product/tabs/description.php' );
    woocommerce_get_template( '*****/product_faqs.php*****' );
     }

    Please help.
    Thanks!

    Thread Starter questionabout

    (@questionabout)

    Hi! Anyone here can help with this?
    I am not into programming and I am trying to move the FAQ tab below product description (away from tabs)
    So far I am trying to do this:

    function woocommerce_template_product_faq() {
    faq_tab_content();
     }
    
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_product_faq', 13 );

    It doesn’t seem to work. Anyone here can help with the php coding?
    Thanks!

    Plugin Author Josh Levinson

    (@joshlevinson)

    questionabout,

    You can use the following code to output the FAQs wherever you’d like:

    add_action( 'woocommerce_after_single_product_summary', function(){
    	Woo_Faqs\CorePublic\faq_tab_content();
    }, 20 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘moving out from Tabs’ is closed to new replies.