• Resolved wpdevboy

    (@wpdevboy)


    Not sure if this is even possible but can you update the content-single-product.php file to show the selected custom tab instead of the default woocommerce ones?

    I’m thinking the woocommerce_output_product_data_tabs function will need to be modified somehow to output the custom tabs you want to use, and in the right order.

    To add a little complication the tabs that get outputted will vary depending on the product category e.g. if the product category is Men then show the Mens Size Guide tab, if Women then show the Womens Size Guide tab.

    Has anyone done that before?

Viewing 1 replies (of 1 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @wpdevboy,

    Can you explain more on what’re you trying to achieve?

    I think you’ll find the filter woocommerce_product_tabs particularly useful. You have access to the current product (using global $post) and the array of tabs are passed in as an argument. You can re-order, remove, or add new tabs with this filter.

    If you’d like any more help let me know!

    Cheers,
    Kevin.

    • This reply was modified 6 years, 10 months ago by yikesitskevin.
Viewing 1 replies (of 1 total)
  • The topic ‘Adding custom product tabs to woocommerce theme file’ is closed to new replies.