-
AuthorPosts
-
January 19, 2016 at 3:41 pm #567867
Hi there,
I am interested in creating an enfold child theme for my existing site, so that making updates are easy.
When creating my existing site I did not consider a child theme.
I read the guide and watched the video on http://kriesi.at/archives/the-complete-guide-to-updating-enfold.
I have also looked at https://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme.
It seems easy enough, however, I am concerned about activating my newly created child theme. Will I just loose the enfold configuration settings (in wp admin) as the video suggests, or will it effect other areas of Enfold and/or WordPress? Such as content, images, layout and plugins etc.
Darrell
January 19, 2016 at 3:55 pm #567879Hi!
Please also see – http://kriesi.at/documentation/enfold/using-a-child-theme/
Which files have you modified?
When you activate Enfold child theme, you can go to Enfold theme options and import parent theme options with a single click. When you successfully move your modified files to your child theme after that, you will not have any issuesCheers!
YigitJanuary 19, 2016 at 4:15 pm #567903Thanks Yigit,
……and a quick response :)
I have modified custom.css, custom.js, functions.php in the enfold parent theme.
That link is useful, I now feel more confident with switching to a child theme.
Darrell
January 19, 2016 at 4:22 pm #567917Hey!
Please add following code to Functions.php file of your child theme
function wp_change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
and move modified file inside /js folder
You can move the codes you have in custom.css file into Style.css file of your child theme and you can copy the functions you have added to functions.php file to your child theme’s functions.php file. Before making the changes, please make sure to have a backup, just to be on the safe side :)
Best regards,
YigitJuly 24, 2018 at 8:16 am #989055Hello,
I tried to do this, and had the blank child theme running, but even after importing the parent enfold settings from the theme options my blog pages and the footer widgets lost my formatting. Maybe more things wrong too but did not spot them yet. So I deleted the child theme for now. I had some code in the functions.php file so I had wanted to move that to the child theme’s functions.php once it all looked OK.. I am using 4.1.2 and want to set up the child theme before updating.
Thanks
July 24, 2018 at 8:24 pm #989344Hi s29ers,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Do you have a backup?
Best regards,
VictoriaJuly 24, 2018 at 9:30 pm #989383Hi Victoria
Yes I do have a backup.
I added the blank enfold-child theme back into the themes folder.
Details provided as asked.
Thanks!July 25, 2018 at 1:40 pm #989669Hi s29ers,
I can see the credentials, but I do not see the login link anywhere. Can you please add it as well?
Best regards,
VictoriaJuly 25, 2018 at 7:07 pm #989884Oh sorry. See below pls.
July 27, 2018 at 1:17 pm #990681Hi s29ers,
Which version of php are you running?
Can you add the child theme again so that we can see the issue?
Best regards,
VictoriaJuly 28, 2018 at 9:24 am #990907Hi Victoria,
WP/PHP details below.
Do you want me to leave the child theme running? It’s not currently. You can activate it by choosing it (enfold with no graphic in appearance > themes) and then select inherit from parent in Enfold options per your instructions, and then please re-activate the actual Enfold again so the website is normal. I attached a screenshots.zip file after doing just that and you can see screenshots I took with child running (“with child” in the filename) and then after re-activating the original theme again, more screenshots with “no child” in the filename. Link to Zip is below.
ThanksJuly 31, 2018 at 11:17 am #991877Hi,
I get an error when I try to activate the child theme. Did you create a backup or a restore point?
UPDATE: Please edit the parent theme’s functions.php file and then remove the “activateMenuItem” function. I moved that function in the child theme but then forget to remove the other one. Sorry about that.
Best regards,
IsmaelJuly 31, 2018 at 6:47 pm #992042Hi Ismael I fixed that functions.php per your instructions above. You can see the same problems as in the screenshots I sent, wrt to appearance. No logo, etc. wrong colours, etc. all sidebars and footers are messed up too. Maybe other things. Please help to fix ASAP. Thanks
August 1, 2018 at 7:45 am #992214Hi,
There’s a few invalid css codes on the Quick CSS field, which is why the site is not rendering correctly.
I corrected those css codes. The site looks exactly like when the parent theme is activated.Best regards,
IsmaelAugust 1, 2018 at 8:25 am #992248Hi Ismael,
Thanks for fixing that. However, the site is still has errors. The footers are wrong and the blog and blog post right sidebars are wrong too — i.e. content, layout and elements are incorrect. Please see the footer and sidebar screenshots I sent for the original and the child (‘no child’ and ‘with child’ respectively in the filenames).
Regards
August 2, 2018 at 5:35 am #992688Hi,
You may need to re-configure the widgets in the Appearance > Widgets. I’m not sure why they were changed though.
Best regards,
IsmaelAugust 2, 2018 at 8:21 pm #992979Thanks. Seems to be a bug in your import from parent process.
August 2, 2018 at 10:57 pm #993029 -
AuthorPosts
- You must be logged in to reply to this topic.