Hi
I have noticed that after updating WP the functions.php is often reset and I loose all Toolset translations I've added. I have tried moving them to the functions.php in the Kadence theme, but they don't seem to work.
I've also tried to create a plugin for this as explained here https://stackoverflow.com/questions/64754090/wordpress-code-added-to-functions-php-disappears-after-update
but it doesn't seem to work either.
Any suggestion about where to best place them so that are not deleted at every WP update ? thanks
Best regards
Nicola
Hi,
yes, it works! As stated in my other ticket, I restored the site to the previous version where transltations were in the functions.php, see attachment. Weird, isn'it ?
What you should do is, you should create a child theme and add the gettext filter to child theme's functions.php file. So, when parent theme is updated with any possible future updates, your code will stay intact with child theme's functions.php file.