• Your plugin is great, thank you. Only problem is, it creates empty tabs when there is no content. Two custom tabs are “Blog” and “Videos” , some products have this, and some don’t. (using option 3 when importing, Edit Tab Title & Content.)

    I tried using your advice to Freddie to hide the blog tab, it did not work for me.

    jQuery(document).ready(function( $ ){
    //window.addEventListener(‘DOMContentLoaded’, function() {
    const hideButton = document.querySelector(“.blog_tab”);

    const hidePanel = document.querySelector("#tab-blog");
    
    if (hidePanel.children.length < 2) {
    hidePanel.style.display = "none";
    hideButton.style.display = "none";
    }

    });

    How can I hide empty Blog and Video tabs (without disturbing the native WC Reviews tab, which may have no reviews yet).

    The page I need help with: [log in to see the link]

  • The topic ‘Hide Empty Tabs’ is closed to new replies.