How to redefine


I see that in woo-setup.php, the opening divs are defined through functions dazzling_wrapper_start and dazzling_wrapper_end
I need to change the classes of the openings divs, how can i do this in my child themes ?

Hi there

Hope you are having a good day and thank you for your question
Copy the file in the child theme and do whatever you wish to the file in the child theme :slight_smile:
Colorlib Support Team

When i copy /inc/woo-setup.php in my child theme, the parent inc/woo-setup seems to be loaded instead


Add this in to your child theme’s functions.php

add_action('woocommerce_before_main_content', 'dazzling_wrapper_start', 9);
function dazzling_wrapper_start() {
  echo '<div id="primary" class="content-area col-sm-12 col-md-8 ">';
  echo '<main id="main" class="site-main" role="main">';

change the div class and everything in the above code after you pasted. If still it didn’t load means, change the number 9 to 11.

Let us know,