How do I find the child theme function.php

This topic has 2 replies, 2 voices, and was last updated 1 years, 7 months ago ago by Rose Tyler

  • Avatar: chris.barrett
    Chris Barrett
    Participant
    September 6, 2022 at 12:49

    The file function.php can’t be found in appearance?

    I wish to add some code to remove any reference to “shipping” and replace with the word “delivery” to suit the UK market.

    add_filter(‘woocommerce_shipping_package_name’, ‘change_shipping_text_to_delivery’, 20, 3 );
    function change_shipping_text_to_delivery( $sprintf, $i, $package ) {
    $sprintf = sprintf( _nx( ‘Delivery’, ‘Delivery %d’, ( $i + 1 ), ‘delivery packages’, ‘woocommerce’ ), ( $i + 1 ) );
    return $sprintf;
    }

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 6, 2022 at 12:52

    Hello,

    Are you trying to edit PHP files via WP Dashboard? Use FTP for these purposes because in case you make any error you’ll be locked out and won’t be able to change anything back without FTP. So, it would be better to use FTP from start.
    If you do not know how to create FTP contact with your hosting provider, they will help you.
    Please note that we are not responsible for the third-party code -https://themeforest.net/page/item_support_policy

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘How do I find the child theme function.php’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.