Making a child theme when the template file structure is complex
-
I have created a child theme because I need to make small code changes and must keep auto-updates on.
I read the instructions on wordpress, but its confusing:It says; if the parent them has woocommerce/templates/amazingtemplate.php
the child them should have woocommerce/amazingtemplate.php
In other words leave out “templates”. I m guessing the get function just assumes there wil be a templates folder.
So what do I do when parent the structure contains:
woocommerce/template-parts/amazingtemplate.php ( this is the case in my theme)
or
woocommerce/templates/template-parts/amazingtemplate.phpAnyone who’s done development as I used to do knows the feeling when the bug is not responding to tests. The platform is very complicated, the web and cache and cache plugins and so much to look at at if you’re over 25 :-).
Any advice would be great.
There are dozens of tutorials in Google SERP and as usual, all copied form one another, all omitting the key question.
Thanks in advance.- This topic was modified 3 years, 5 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Making a child theme when the template file structure is complex’ is closed to new replies.