How to edit [terms] shortcode link text from child theme?
-
In the standard WooCommerce customiser settings you can amend the terms and conditions acceptance text, and you can also replace the [terms] shortlink with whatever html link you want.
However, if you do that and use a custom link, the terms text no longer loads in a nice embedded frame and instead the link opens in a new page like a normal link.
How can I change the ‘terms and conditions’ link title that is displayed when using the shortlink. Specifically I need it to say ‘terms of use’ instead, but behave in the same way as the [terms] shortcode. Can this be done with a custom function in the child theme?
I’ve found what I need to change is the $terms_link in line 906 of wc-template-functions.php but I don’t know how to do this with a hook, as I can’t override files in the /includes folder from my child theme.
- The topic ‘How to edit [terms] shortcode link text from child theme?’ is closed to new replies.