As per your advice, we have modified our function.php file to include this code:
add_theme_support(‘avia_template_builder_custom_css’);
which allows us to put specific css classes on all enfold elements. It works really well and we’ve placed a lot of custom css classes throughout the entire site. We plan to create a child theme to preserve that code through future updates, but we want to make sure that when we make the child theme all of the css classes we have currently placed will be preserved during the process.
So, for example, we have used the css class “plum” on the color section of our “About Us” page. When we create a child theme and move that extra php code that allows for the css classes to exist, will we still have “plum” set on the color section, or will the process erase all the settings we’ve created? We would like to avoid that if possible.
Hi jaimemerz,
Your classes should be safe but it’s always recommended to do a full backup before updating or changing themes just in case. Please let us know if you should need any more help in your process.
Thanks,
Rikard
Thank you!
We are planning on:
1. Backup our enfold folder
2. Backup the database
3. De-activate enfold theme
4. Rename existing enfold folder enfold-child
5. Reinstall fresh enfold and use that as parent theme
6. Activate enfold child
Will this work? We know that child themes are supposed to only have the files you change, so would having a copy of single file regardless if it was change going to mess us up? If so, is there a better way to create this child theme as well as a fresh parent without loosing all of our customization?
Hey!
You don’t need to rename the folder. Please follow the instructions here: http://kriesi.at/documentation/enfold/using-a-child-theme/
Cheers!
Ismael