Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #443125

    Hi,

    We have just been passed a website that has the enfold theme installed, and we need to create a child theme for the website so that it can update without it effecting the website.

    It has edits of the enfold core theme, as well as woocommerce edits

    Can you advise me on the steps needed to set up a child theme if there are already these edits in place?

    Thank you

    #443131

    Hey hloft!

    You can simply move modified files to your child theme. For modified ALB elements, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
    And they have modified Avia.js file, 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 );

    Best regards,
    Yigit

    #443134

    Great, thank you Yigit.

    If the functions.php has been edited/added to, will I need to copy the whole of the file over or just the additions?

    Thanks,
    Harry

    #443142

    Hi!

    You are welcome Harry! You can only copy the additions to your child theme.

    Best regards,
    Yigit

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