• Resolved David

    (@dlim_vernier)


    Can we create template files for tabs like we can with the description tab?

    For more detail, for the description tab in WooCommerce, you can override the default WooCommerce one by creating a template in the same folder structure and filename:
    /wp-content/themes/mytheme/woocommerce/single-product/tabs/description.php

    I created a custom tab with this plugin, can I make a matching template file so that the tab uses the template?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Hey @dlim_vernier,

    We don’t have a template override in place for the custom tabs but that could be a useful feature for the future!

    For now, you could use our filters to change your markup based on whatever tabs being rendered.

    add_filter( 'yikes_woocommerce_custom_repeatable_product_tabs_heading', function( $tab_title_html, $tab ) {
    // Change the heading html here.
    } );
    			add_filter( 'yikes_woocommerce_custom_repeatable_product_tabs_content', function( $content, $tab ) {
    // Edit the html here.
    } );

    Cheers,
    – Freddie

Viewing 1 replies (of 1 total)
  • The topic ‘Tab Templates’ is closed to new replies.