Do you have a child theme? I would highly recommend a child theme and then copying the entire Woocommerce directory into that child theme (do NOT remove it from the plugins folder though, just copy it over).
Either way this is the solution. If you need further assistance, it doesn’t work or make sense just let me know.
//This overrides the standard divi sidebar conditionals so that it shows up on the brands page in addition to the other shop pages
function my_content_wrapper_end() {
echo ‘</div> <!– #left-area –>’;
woocommerce_get_sidebar();
echo ‘
</div> <!– #content-area –>
</div> <!– .container –>
</div> <!– #main-content –>’;
}
// Remove the default Divi theme sidebar function
function remove_et_divi_output_content_wrapper_end() {
remove_action(‘woocommerce_after_main_content’, ‘et_divi_output_content_wrapper_end’, 10);
}
// Call the remove function (above) during WP initialization
add_action(‘init’,’remove_et_divi_output_content_wrapper_end’);
// Add custom function for sidebar on all pages
add_action(‘woocommerce_after_main_content’, ‘my_content_wrapper_end’, 10);