Warning: Declaration of ET_Theme_Builder_Woocommerce_Product_Variable_Placeholder::get_available_variations() should be compatible with WC_Product_Variable::get_available_variations($return = 'array') in /home/wpsaas/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/WoocommerceProductVariablePlaceholder.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/wpsaas/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/WoocommerceProductVariablePlaceholder.php:8) in /home/wpsaas/public_html/wp-content/plugins/dw-question-answer-pro/inc/Posts/Base.php on line 20
Steps 6, child theme modified - Build SAAS using Wordpress Course
CommunityCategory: QuestionsSteps 6, child theme modified
mike.mahz asked 2 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 2 years ago

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

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.

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

No, you dont have to 🙂

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