Support » Plugin: Custom Product Tabs for WooCommerce » Remove title from table content (Not CSS)

  • Resolved javii0451

    (@javii0451)


    I need to remove the title of the tab with php to eliminate de h2. If i do that with css (Display:none) the label does not disappear.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author jpowersdev

    (@jpowersdev)

    Hi @javii0451,

    I see you are using Elementor. Page builders often change things around, and it’s possible that our usual css doesn’t apply to the structure that Elementor is creating. That being said, it’s probably a small change to write css that applies.

    If you want to re-enable the tab titles I can help you update the styles.

    Let me know,
    Jon

    wp-yeyo

    (@wp-yeyo)

    Hi, I have the same problem, is there any php code to remove it from the functions.php.

    I also have elementor, and it is a problem because each title of each tab is a h2 and if you have several on the same page is bad for SEO.

    I look forward to your answer. It is a great plugin 😉

    Best regards and thank you very much in advance.

    Plugin Author jpowersdev

    (@jpowersdev)

    Hi @wp-yeyo,

    I threw together a knowledge base article to help you out here – https://yikesplugins.com/knowledge-base/how-to-hide-tab-headings-in-css-or-php/

    With regards to SEO, here’s a Moz discussion on the effects of multiple heading tags on a page https://moz.com/community/q/is-is-ok-to-have-multiple-h2-or-h3s.

    Let me know if that helps,
    Jon

    wp-yeyo

    (@wp-yeyo)

    Hi Jon, thank you very much for responding so quickly.

    Great, it’s just what I needed, it works perfectly!

    I leave you the code I used in case it can be useful to someone who has the same problem as me.

    Your next option is to add a snippet to your functions.php file:

    add_action( 'init', 'yikes_hide_tab_title', 10 );
    function yikes_hide_tab_title(){
        // Hide our custom tab's title.
        add_filter( 
            'yikes_woocommerce_custom_repeatable_product_tabs_heading', 
            '__return_false', 
            99 
        );
    
        // Hide the description tab's title.
        add_filter( 'woocommerce_product_description_heading', '__return_false', 99 );
    
        // Hide the additional information tab's title.
        add_filter( 'woocommerce_product_additional_information_heading', '__return_false', 99 );
    }

    Best regards and thank you very much.

    Plugin Author jpowersdev

    (@jpowersdev)

    Hi @wp-yeyo,

    You’re very welcome!

    Jon

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove title from table content (Not CSS)’ is closed to new replies.