• Resolved Carmine

    (@carminemarsocci)


    Hi, i’m using this plugin in a Zephyr Theme, i’m creating the product template and i don’t know how to embed my custom tabs in it. So basically Tabs don’t show up.
    I already used this plugin in other WordPress website but without using a template for all the products.
    Any Solutions?
    Thanks a lot!

    • This topic was modified 5 years, 1 month ago by Carmine.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @carminemarsocci,

    WooCommerce has some great documentation on overriding the templates.

    Template structure & Overriding templates via a theme

    You’ll need a /woocommerce folder in your theme if you don’t already. Just follow their documentation and you’ll see your custom tabs come through as long as you include the line:

    $product_tabs = apply_filters( 'woocommerce_product_tabs', array() );

    That Filter will pull all your Custom Product Tabs and can be found specifically in this template file.

    WooCommerce Tab template

    Let me know if you have any questions!

    Cheers,
    Freddie

    Thread Starter Carmine

    (@carminemarsocci)

    Thank you!

    Thread Starter Carmine

    (@carminemarsocci)

    Hi again, i’m about to customize the template adding the folder in my theme, but maybe i didn’t understand. This line $product_tabs = apply_filters( ‘woocommerce_product_tabs’, array() ); is already in the woocommerce/single-product/tabs/tabs (not the one in the theme), so i’m asking for the right filters to put in to let work custom tabs.

    Sorry for the newbie question.
    Thanks

    Thread Starter Carmine

    (@carminemarsocci)

    Ok i realized i made the wrong question.
    I’ll explain again. I’m making the Product template page in Zephyr Theme, now i created three tabs for a product via the theme as you can see in the screenshot 1 and 2, so what’s missing? The dynamic element that take the custom tabs content, i’m talking about custom tabs set in the product page as you can see here. Maybe i need to contact theme author but i ask you the same, for some ideas if you can.
    Thanks again and sorry for the mistake.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embed tabs in template’ is closed to new replies.