Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Zoe,

    Unfortunately Divi isn’t compatable with Custom Product Tabs at the moment and the shortcode option isn’t a recommended route by far.

    But, if you are in a pinch and don’t have any option you will need your shortcode to mimic the behavior of the tabs.php file found here: https://github.com/woocommerce/woocommerce/tree/master/templates/single-product/tabs/tabs.php

    This is the template that WooCommerce would use in a traditional WordPress theme to display your tabs. The filter you see on the tabs is how our plugin adds more tabs based off of this template.

    I hope that helps!

    Cheers,
    Freddie

    Thread Starter Zoee

    (@epixmedia)

    Thanks Freddie, appreciate the response 🙂

    Can I ask why the shortcode route isn’t recommended?

    Thanks!!

    Hey @epixmedia,

    The reason its not recommended is because it goes against the templated system that WooCommerce uses. If you run into issues its going to be harder to debug and figure out issues. When you use the native WooCommerce and WordPress functionality you have the ability to find other peoples solutions to your issues with a quick Google search. However, if you are a developer and you’re comfortable with php you should be able to figure out issues as they arise. It all really just depends on your situation and development teams experience.

    Cheers,
    Freddie

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shortcode for all tabs’ is closed to new replies.