• Resolved rayge

    (@rayge)


    I am trying to get your tabs plugin to work with the divi builder.

    I have the WooCommerce tabs module inside the template. I’m just not sure what else I need to do to make your tabs display now.

    I assume it might just be some code in the functions.php to add items to the $args[‘include_tabs’] array thus allowing them to appear.

    Otherwise I have to keep commenting out the following code in the tabs.php for divi to get it to work and I have to do it over and over again ??

    // if ( $active_tabs && ! in_array( $name, $active_tabs, true ) ) {
    // continue;
    // }

    THERE HAS to be another way to handle this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @rayge,

    Unfortunately, what you’re experiencing is somewhat out of our control. If your Divi theme template files are circumventing the WooCommerce tabs system (that our plugin extends), there is little we can do.

    Not sure if this meets your needs, but you could create a child theme that overrides the tabs.php file with the modifications you’ve described, which would prevent you having to do it each time your theme is updated.

    If you find a way to inject tabs into the divi tabs module via code, you can fetch our tabs by pulling the yikes_woo_products_tabs meta for a given product.

    Let me know if that helps,
    Jon

    Thread Starter rayge

    (@rayge)

    I have no problem doing a file-based override but I must have had my path wrong when I tried it previously as it didn’t work. I assumed it wouldn’t work after that so if you can help me with that it is a solution and I will take what I can get right now.

    Thread Starter rayge

    (@rayge)

    I mean if we can somehow “simply” add the custom tab names to $args[‘include_tabs’] before the tab module grabs them that would also solve the problem.

    this is a pipe-delimited string that is turned into an array for use with the tabs module within Divi using the key name.

    Unfortunately, the child theme file override doesn’t seem to be working.

    • This reply was modified 2 years, 11 months ago by rayge.

    Hi @rayge,

    A google search returned the following, but there’s no mention of hooks that apply to tabs – https://www.elegantthemes.com/documentation/developers/hooks/

    Your best course of action is to browse the plugin files and look for any relevant hooks that you could use. Alternatively, you could open a support ticket with Divi and see if they provide any programmatic means of adding tabs.

    Let me know if that helps,
    Jon

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Divi Builder issue STILL?’ is closed to new replies.