New Landing How can we help? Atelier How to change product tab title?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #246730
    1x1wall
    Member
    Post count: 22

    Hi,

    I would like to change product tab title from “Additional Information” to be “Description” and show its content at the first tab. And, change tab title from “Description” to be “Inspiration”.

    I have tried this following code but it doesn’t work.

    add_filter( ‘woocommerce_product_tabs’, ‘wc_change_product_description_tab_title’, 10, 1 );
    function wc_change_product_description_tab_title( $tabs ) {
    global $post;
    if ( isset( $tabs[‘description’][‘title’] ) )
    $tabs[‘description’][‘title’] = ‘My new description’;
    return $tabs;
    }

    Thanks,
    Petch

    #246732
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Petch,

    Have you added that code to your child theme functions.php file?

    Thanks.

    #316005
    vaneeka
    Member
    Post count: 16

    Hello there,
    I have the same issue. I would like to change the additional information tab title. How can I do this?

    Thanks a lot
    Vaneeka

    #316009
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Vaneeka,

    You can read how to do that here: https://docs.woocommerce.com/document/editing-product-data-tabs/

    #316043
    vaneeka
    Member
    Post count: 16

    Hi David,
    thanks a lot, now it works properly!
    I should change the title of the product categories as in the attached photo, how could I do?
    And then, there is a way to delete the ‘newest product’ icon on the image product as in attaches photo?

    Best thanks
    Vaneeka

    #316049
    David Martin – Support
    Moderator
    Post count: 20834

    1) You simply change the widget title. Dashboard => Appearance => Widgets.

    2) Have you done this already, what URL do you see this on?

    #316052
    vaneeka
    Member
    Post count: 16

    Sorry but I don’t understand the second point…

    Thanks
    Vaneeka

    #316055
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    we need the url of that page where the new tag appears so we can provide some css to remove it.

    -Rui

    #316056
    vaneeka
    Member
    Post count: 16

    I solved the problem by putting the following code on my child css:
    .badge-wrap{display: none !important;}

    Thanks a lot
    Vaneeka

    #316067
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great.Glad it’s sorted.
    -Rui

    #316071
    David Martin – Support
    Moderator
    Post count: 20834

    Glad you got it resolved.

    Thanks.

Viewing 11 posts - 1 through 11 (of 11 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