DWQA QuestionsCategory: QuestionsSteps 6, child theme modified
wpsaas_admin Staff asked 7 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);