• Resolved designbypye

    (@designbypye)


    Hi there, great plugin! Ive added the custom tabs (which are great) but the title in the tab title is repeated in the content of the tab. I would like to remove this duplication.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @designbypye,

    Use this filter function to remove the duplicated tab title.

    /**** YIKES Custom Product Tabs - Remove Tab Title ****/
    
    add_filter( 'yikes_woocommerce_custom_repeatable_product_tabs_heading', '__return_false' );

    Are you familiar with adding filter functions?

    Let me know,
    Kevin.

    Thread Starter designbypye

    (@designbypye)

    Hi there – I added this line of code into the functions.php (which I thought was correct) and now its showing this > “Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in /home/designbypye/public_html/wp-content/themes/uncode/functions.php on line 227” and I cant undo what I did! Please help me ??

    Thread Starter designbypye

    (@designbypye)

    OK – So I’ve edited the functions.php and removed the lines of code Ive just added, my website is back to normal. But I am abit of a novice – hence my mistake. Please can you help me create a piece of code so I can paste it straight in and not get the error again.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @designbypye,

    Sorry about that! The code snippet is correct though. Based on the error you sent over, it seems you pasted the snippet in an incorrect place within your functions.php file. You should be able to paste it at the very bottom. If you already tried that, you could try the My Custom Functions plugin (https://www.ads-software.com/plugins/my-custom-functions/) or you could email me your functions.php file and I could add the snippet to the correct place.

    Let me know.

    And again, sorry that editing functions.php created an error for you.

    Kevin.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Hi @designbypye,

    You can also try this CSS if the function isn’t working for you.

    .woocommerce div.product .woocommerce-tabs .panel h2 {
        display: none;
    }

    You have a few options to add CSS code:

    • If you’re using WordPress 4.7 or higher, you can go to Appearance > Customize > Additional CSS and place the code there.
    • If you created this theme yourself, you can just add it to your style.css file
    • If you’re using a theme you downloaded or bought you can make a child theme and add the code to your child theme’s style.css file
    • Your theme may have a “Custom CSS” option. If it does, then you can just pop it in there.
    • You can use a plugin like Simple Custom CSS or Jetpack and enter the code in their Custom CSS area

    Thank you!
    -Tracy

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Tabs Title Duplication’ is closed to new replies.