To start using Divi Child Theme:
cd wp-content/themes
git clone https://github.com/squalonero/divi-child.git
- Then open Wordpress admininistration
- Navigate to Appereance -> Themes
- Select Divi Child as Active theme
You're done!
- Copy file from
www/wp-content/themes/Divi/includes/builder/module
towww/wp-content/themes/divi-child/includes/builder/module
- At the start of the file, replace
require_once 'helpers/Overlay.php';
withget_template_part( '/includes/builder/module/helpers/Overlay.php' );
- Add this property to the class:
public static $shortcode = 'skh_pb_blog';
replace content with your own slug. - Inside
init()
method, make value of$this->slug
equal to $shortcode defined in previous point. - Inside
init()
method, change value of$this->name
and$this->plural
. Just add the keyword "Child" so we can distinguish the component from the parent one. - At the bottom of the file, remove the check
if ( et_builder_should_load_all_module_data() )
till the closing bracket.