• Customer

    Changing discription name on one of the sections of the site

    Posted by: NuevoADV Jun 13, 2018 at 13:34 (9 days ago)
    I need to have the word description changed on one of the pages on the site.

    http://dewyderm.com/dev/product/dewy-derm-moisturizer/

    Change from Description - to - Directions on the bottom of the above page.


  • Supporter

    Posted by: Kazim Vu, Jun 14, 2018 at 03:25 (8 days ago)

    Hi NuevoADV
    In your case, you can translate by the Loco Translate plugin or you can change the titles with following code – add it to the bottom of functions.php file
    add_filter( 'woocommerce_product_tabs', 'sb_woo_rename_reviews_tab', 98);
    function sb_woo_rename_reviews_tab($tabs) {
    $tabs['additional_information']['title'] = 'Additional information';
    $tabs['description']['title'] = 'Description';
    return $tabs;
    }
    Regards
  • Customer

    Posted by: NuevoADV, Jun 18, 2018 at 19:33 (3 days ago)

    Getting the following error once I try to save the code bellow.

    Your PHP code changes were rolled back due to an error on line 11 of file wp-content/themes/merci-child/functions.php. Please fix and try saving again.
    syntax error, unexpected ')'
  • Customer

    Posted by: NuevoADV, Jun 18, 2018 at 19:40 (3 days ago)

    I only need the info bellow, I'm hoping you can provide code that will not be kicked back on me.

    add_filter( 'woocommerce_product_tabs', 'sb_woo_rename_reviews_tab', 98);
    function sb_woo_rename_reviews_tab($tabs) {
    $tabs['description']['title'] = 'Description';
    return $tabs;
    }
  • Customer

    Posted by: NuevoADV, Jun 18, 2018 at 19:45 (3 days ago)

    I solved the problem, thank you. I needed to work on the PHP files.

    -Pedro
  • Supporter

    Posted by: Kazim Vu, Jun 19, 2018 at 01:02 (3 days ago)

    Great!. If you have other questions, please connect to me.
    Thank you and have a nice day!

    Kazim

INSTALLATION SERVICE

We offer service for $29. If you would like to use it, please click here to provide your credential information.

CUSTOMIZED SERVICES

Use our expert service to turn your ideas into reality. Click here to provide your needed information.

WORKING TIME

Our support service works from Monday to Friday.
Mean time (GMT +7):
+ 7:30 - 11:30 AM
+ 1:30 - 5:30 PM
We will try to answer all the questions within 24 hours and solve them as quickly as possible