Viewing 8 posts - 1 through 8 (of 8 total)
  • #177071
    GTS75
    Member
    Post count: 240

    I’d like to remove all of the ‘Description’ tabs from my product pages. I add my descriptions above the variation & pricing data and don’t need the tab displaying below as well.

    Is there css for this?

    Thanks

    #177125
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Add the code below to your custom css.

    #product-accordion .accordion-group:first-child {
      display: none;
    }

    -Rui

    #177364
    GTS75
    Member
    Post count: 240

    Hey Rui – That code seems to remove the Additional Information tab as well as the Description tab below the variations and pricing. I only want the Description tab removed.

    Is there new code for this?

    Thanks

    #177389
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    In my tests it doesn’t disappear, you just have to click in the additional information tab.
    https://www.dropbox.com/s/sx129qvmvjy4lg3/adittional_information.png?dl=0

    Can you check again or send me a screenshot of the problem.

    -Rui

    #177400
    GTS75
    Member
    Post count: 240

    Sure. I’ve attached two screenshots. The first one is without the code, and the 2nd is the page after I’ve added the css.

    It doesn’t happen on every product page, but on most of them the Description tab disappears, but so does the Additional Information tab.

    Attachments:
    You must be logged in to view attached files.
    #177406
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Just checked and that happens because the other product doesn’t have the description.
    There is nothing in the html structure so that I can target the specific element for the product description, so my code is targeting the 1st accordion element.

    Can you try instead add this line of code in the functions.php of your child theme or parent theme in case you don’t have a child theme.

    
    remove_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
    

    -Rui

    #177410
    GTS75
    Member
    Post count: 240

    I’m not good with messing with the functions.php…it’s just as easy for me to add some random text to the products that don’t have a description in the accordion section. The css will just remove them and still display the additional info tab.

    Is there an easy way to change the text of “Additional Information”?

    #177413
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I would also suggest that so that all products are in with the same fields, that way the css will work.

    The easiest way is using the plugin below to replace it.

    Real-Time Find and Replace

    Besides this only normal WordPress translation.

    -Rui

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register