- This topic has 9 replies, 4 voices, and was last updated 1 year, 11 months ago by David.
June 24, 2015 at 12:28 am #116330Adrian Cojocariu
Hey man, I want to edit some of the Woocommerce templates and they will overwrite when I update Woocommerce, so they recommend putting them into the theme-folder/woocommerce …
The thing is … will the theme update then overwrite the new folder ? I mean… wipe it out completely ?
Should I use a child theme for Generatepress too ? Sounds a bit complicated to me ^_^June 24, 2015 at 9:39 am #116387TomLead DeveloperLead Developer
If you want to make changes to any core file, using a child theme is the way to go.
Simply copy the woocommerce.php file from the generatepress folder, and paste it into your child theme folder. Then you can make changes to that file without worrying about your changes being removed when you update 🙂
You can download a blank child theme for GP here: http://generatepress.com/api/themes/generatepress_child.zipJune 24, 2015 at 10:46 am #116402Adrian Cojocariu
All my CSS is in Simple Custom CSS
If I install a child theme now, over the customized Generatepress, will it keep all the Customizer settings and CSS ? Or will it be blanked ?June 24, 2015 at 10:47 am #116403TomLead DeveloperLead Developer
It will keep all of your custom CSS and settings.
The only thing you may need to do is re-set your theme location for the menu in “Appearance > Menus”.June 24, 2015 at 10:52 am #116404Adrian Cojocariu
Gr8 stuff man, thanks !June 24, 2015 at 10:53 am #116406TomLead DeveloperLead DeveloperAugust 7, 2019 at 5:36 am #977949Linda
Hi Tom or other Supporter,
I noticed this thread is 4 years old so wanted to ensure its advice is still current.
Before reading this, I made changes directly into a WooCommerce email template php file. The changes worked so I felt really proud of my non-technical self … until I read this!
1. Should I undo the changes I made there yesterday?
2. Do I set up a child theme before changing such files? It sounds like I do.
3. WooCommerce has this message at the bottom of all email edit pages:
“To override and edit this email template copy woocommerce/templates/emails/admin-new-order.php to your theme folder: generatepress/woocommerce/emails/admin-new-order.php.”
Should I be doing this? Do these need to be copied into a child theme?
4. Should this same process be done for any WooCommerce PHP text I’d like to edit?
It looks as if I got ahead of myself. Don’t want to mess things up by doing any further editing until I know how to do it correctly!
Thanks for your advice,
LindaAugust 7, 2019 at 7:27 am #978028DavidStaffCustomer Support
topic is still relevant.
2. Yes – this doc for setting up child theme:
3. Correct except generatepress-child will be the root theme folder e.g
4. and Yes 🙂August 7, 2019 at 8:02 am #978186Linda
As always, I’m super impressed (and grateful) for your super fast response! 🙂
You’ve answered all my questions and now I know what to do. Looks as if this will not be a “quick fix”. Think I’ll hold off on doing anything except undoing my yesterday changes until I can set aside a big chunk of time.
Appreciate your advice. Am heading off to undo my php changes in WooCommerce.
LindaAugust 7, 2019 at 8:04 am #978188
- You must be logged in to reply to this topic.