CommunityCategory: QuestionsSteps 6, child theme modified
mike.mahz asked 7 months ago

i have questions on Step 6, i use divi-child-theme-generator to create child theme.but i tried to copy your code into function.phpit doesn’t work.

i put the code.." function divichild_enqueue_scripts() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}add_action( ‘wp_enqueue_scripts’, ‘divichild_enqueue_scripts’ );Function divi_child_change_meta_box_titles(){ Global $wp_meta_boxes: Function divi_child_check (&$arr){ foreach(&$arr as &$box){ if(is_string($box)and $box == ‘LandingPage Builder’){ $box = “LandingPage Builder”; //←— Replace “The Divi Builder” } else if (is_array($box)){ divi_child_check($box); } }}divi_child_check($wp_meta_boxes);

2 Answers
wpsaas_admin Staff answered 7 months ago

HI Mike!
So here are some Divi Child theme creators that can work with WordPress Multisite.
https://divicake.com/divi-child-theme-generator/

or the plugins here https://wordpress.org/plugins/orbisius-child-theme-creator/
These are easier way to create Child themes.
As Far as the code, I would think you dont need the exact code since Divi is upgraded now.
Hope that helps.
Regards

mike.mahz replied 7 months ago

i use it to created, my question is, if i use it to create, i don’t need to put your script in it?

wpsaas_admin Staff replied 7 months ago

No, you dont have to 🙂

wpsaas_admin Staff answered 7 months ago

HI Mike, No you dont have to, The code snippet helps rebrand the multisite themes avilable to your clients but this can be optional.

Regards