Steps 6, child theme modified

CommunityCategory: QuestionsSteps 6, child theme modified
mike.mahz asked 3 years 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 3 years ago

HI Mike!
So here are some Divi Child theme creators that can work with WordPress Multisite.

or the plugins here
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.

mike.mahz replied 3 years 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 3 years ago

No, you dont have to 🙂

wpsaas_admin Staff answered 3 years 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.


This entry was posted in . Bookmark the permalink.