• dahnnn

    (@dahnnn)


    Dear, the plugin is great but I’m having a little problem. When a visitor is not registered or logged in, the tabs will not show any text. Once the visitor is logged in, the tabs will show the text like they should. I would like to make the tabs (content) visible for everyone, registered or not. Is this normal or is it conflicting with something maybe? Thank you for your time and help. Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dahnnn

    (@dahnnn)

    Apparently, when you visit the site as a guest, it places the custom made tab outside the
    <div class=”woocommerce-tabs wc-tabs-wrapper”> and therefore it won’t open the tab content.

    I found a (temporary?) solution to this, you have to give the tabs a fixed priority and put one of the main tabs (reviews, description or additional information) as the last one.

    add_filter( 'woocommerce_product_tabs', 'wpb_reorder_tabs', 98 );
    function wpb_reorder_tabs( $tabs ) {
        $tabs['reviews']['priority']                = 5;      // Reviews first
        $tabs[test_tab]['priority']                 = 10;    // Test tab second
        $tabs['description']['priority']            = 15;   // Description third
        $tabs['additional_information']['priority'] = 20;  // Additional information fourth
        return $tabs;
    }
    • This reply was modified 8 years ago by dahnnn.
    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    Can you write me your website? So i can check
    Have a nice day
    YITHEMES

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tabs not showing when not register/logged in’ is closed to new replies.