Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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

    #567879

    Hi!

    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 issues

    Cheers!
    Yigit

    #567903

    Thanks 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

    #567917

    Hey!

    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,
    Yigit

    #989055

    Hello,

    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

    #989344

    Hi 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,
    Victoria

    #989383

    Hi Victoria
    Yes I do have a backup.
    I added the blank enfold-child theme back into the themes folder.
    Details provided as asked.
    Thanks!

    #989669

    Hi s29ers,

    I can see the credentials, but I do not see the login link anywhere. Can you please add it as well?

    Best regards,
    Victoria

    #989884

    Oh sorry. See below pls.

    #990681

    Hi s29ers,

    Which version of php are you running?

    Can you add the child theme again so that we can see the issue?

    Best regards,
    Victoria

    #990907

    Hi 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.
    Thanks

    #991877

    Hi,

    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,
    Ismael

    #992042

    Hi 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

    #992214

    Hi,

    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,
    Ismael

    #992248

    Hi 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

    #992688

    Hi,

    You may need to re-configure the widgets in the Appearance > Widgets. I’m not sure why they were changed though.

    Best regards,
    Ismael

    #992979

    Thanks. Seems to be a bug in your import from parent process.

    #993029

    Hi,

    This was not reported by other users but we will keep an eye out for it. Thanks for reporting!

    Best regards,
    Yigit

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.