Custom php code system for editing Woocommerce functions
Hi, we need to change some woocommerce functions and would normally do so in a child theme but as Lay Theme is not child compatible has anyone added custom PHP code using a plugin such as WP Code?
hey what do you need to change about woocommerce files?
you can create a child theme.
however, if lay theme just uses the index.php and page.php files for delivering content
oftentimes themes have much more php files that you can overwrite for people to overwrite using child themes
so you can create a child theme for lay theme, however in many cases it just doesn't make much sense and using lay options -> custm css & html makes more sense
however, in your case it would make sense because you could overwrite woocommerce templates
you know if you create a child theme, it can contain a folder called "woocommerce" and you can place woocommerce template files inside to overwrite lay theme's and woocommerce's template files
@arminunruh thanks for your reply.
It's not the woocommerce files that I need to change, I need to add functions to the functions.php file to alter the messaging behind the back order products and a few other tweaks that I know how to do and would usually put in a child theme but had read that lay theme isn't compatible. Will give it a try.
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
Go here, see if your problem is listed here:
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it