For the equivalent instructions for the Enfold theme, see here.
Creating a WordPress child theme is very straightforward, and it allows you to make major customizations that will not be lost when you update or replace the parent theme. Your customizations are all stored within the child theme.
Note: With the Avada theme, the child theme’s
style.css is NOT automatically loaded, so you have to explicitly load that file in functions.php (see code below).
Note: In order for the child theme’s
style.css to be loaded with the code below, you must set “CSS Compiling method” to “File”. If you must have it set to “Disabled”, you could remove the dependency (
array( 'fusion-dynamic-css'), but then the child theme’s
style.css may load BEFORE the Avada CSS files, and that’s usually not what you want.
Step 1: Create a new folder in
wp-content/themes with the desired name of your child theme.
Step 2: Create a file in the new folder called
style.css with the following contents:
/* Theme Name: BenAvada Description: Ben's Custom Avada Theme Author: Benjamin Ray Author URI: https://benjaminray.com Template: Avada Version: 1.0.0 Text Domain: Avada */ /* Your Custom CSS Here */
Step 3: Create a file in the same folder called
functions.php with the following contents:
Step 4: Create a file in the same folder called
custom.js and fill it with your custom JS
Step 5: Create an optional image for the theme. The recommended size is 1200×900. Give it the name
screenshot.png and upload it to the root folder for your child theme (same location as the files you just created above).
Step 6: Activate the child theme under Appearance -> Themes -> Child Theme Name