Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #701861

    Hi there,

    I have been adding a child theme and now I would like to add the following code. However it’s not working. See below current coding in Child theme functions file. Do I perhaps need to get rid of the /* + */ signs? ( I dare not to do it as it might give an error code).

    Many thanks, Alexandra

    <?php
    /*
    add_filter( ‘woocommerce_product_tabs’, ‘techglimpse_rename_tab’, 98);
    function techglimpse_rename_tab($tabs) {
    $tabs[‘additional_information’][‘title’] = ‘Details’;
    return $tabs;
    }
    */

    #701863

    Hi Thijsalex!

    Yes, you should add the code as following

    add_filter( 'woocommerce_product_tabs', 'techglimpse_rename_tab', 98);
    function techglimpse_rename_tab($tabs) {
    $tabs['additional_information']['title'] = 'Details';
    return $tabs;
    }

    After PHP opening tag.

    Best regards,
    Yigit

    #701871

    Sorry am not a geek, but I added it now as per below, but then the site was completely gone and had to upload the original function.php file via Filezilla to get the site working again. So there is still something not right.

    <?php
    add_filter( ‘woocommerce_product_tabs’, ‘techglimpse_rename_tab’, 98);
    function techglimpse_rename_tab($tabs) {
    $tabs[‘additional_information’][‘title’] = ‘Details’;
    return $tabs;
    }

    #701872

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.