-
AuthorPosts
-
May 27, 2015 at 3:13 pm #450582
Hello Enfold.
My development time is almost over and our awesome enfold themed website will go online any day now.But I need to make it into a child theme. I forgot this at the beginning (first time wordpress user)
I have been reading into the matter and also asked a few questions here already.
I have tracked down all my edits in the themes .php files (included below)
I don’t really know what the best step is now.
-Do I copy the files I changed to the child theme folder. Or do I add the changes to a php file? I don’t understand how this next part works.
-Also can I just keep all the quick css? And if I import theme settings from parrent what is left for me to do?
-Do I lose any of the content in the website like images, pages, plugins etc
– I made a lot of changes wit localization plugin. How do I take those to the child theme?
cheers
- This topic was modified 9 years, 7 months ago by Wolf.
May 27, 2015 at 6:31 pm #450749Hi WolfvanHaeren!
The header.php and loop-index.php files can be copied over to the child theme. The loop-index.php file goes inside a folder called “includes”.
For the functions.php edits you can add those to the child theme functions.php file except for the image size edits. To change the image sizes in the child theme see here, https://kriesi.at/support/topic/modify-post-image-size/#post-432178.
For all of your CSS you can add to the child theme stylesheet. If it is not being applied then try using the !important override rule like so.
a { color: red !important; }
Best regards,
ElliottMay 28, 2015 at 11:18 am #451104Thanks Elliot, I will test this out! And the localization plugin for text changes? will those changes stay? Do I need to copy the .mo file or something?
p.s. does the folder includes go straight in the root folder of the child theme? same level as functions.php style.css and screenshot?
p.s.s do I have to import the css of the parent theme? It’s isn’t included in the example enfold child theme- This reply was modified 9 years, 7 months ago by Wolf.
May 28, 2015 at 6:08 pm #451340Hi!
1. Is it the codestyling localization plugin? Since it’s a plugin I don’t think any changes are necessary in the child theme.
2. Yes, it would look like this, /child_theme/includes/loop-index.php.
3. You don’t need to import it.
Regards,
ElliottMay 29, 2015 at 8:34 am #451548thanks Elliott!
I will be activating my child theme soon. Thanks for the help!!
regards
-
AuthorPosts
- The topic ‘Child theme, final questions’ is closed to new replies.