• Resolved uniquegrouplimited

    (@uniquegrouplimited)


    Hi, I have created brand section in menu bar. The woocommerce sidebar cannot appeared in Brand Page while they can be showed in Category Page. Shall I know how to set Brand Page to show sidebar ? I am now using Divi Child Theme. Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi uniquegrouplimited.

    Divi customise the way of how the sidebars are shown. By default the sidebar not appear in any custom taxonomy archive page (like the brands page), this is a Divi characteristic.

    I think the Divi team can help you better than ours… so i recommend you put in contact with Divi support team and get back if you have news about this issue.

    Otherwise here is a “not totally recommended (but working)” solution… add this code to your functions.php. Tested with Divi 3.0.101

    
    remove_action( 'woocommerce_after_main_content', 'et_divi_output_content_wrapper_end', 10 );
    add_action( 'woocommerce_after_main_content', 'custom_et_divi_output_content_wrapper_end', 10 );
    function custom_et_divi_output_content_wrapper_end(){
    
    	$default_sidebar_class = is_rtl() ? 'et_left_sidebar' : 'et_right_sidebar';
    
    	echo '</div> <!-- #left-area -->';
    
    	if (
    		( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) )
    		||
    		( ( is_shop() || is_product_category() || is_product_tag() || is_tax( 'pwb-brand' ) ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', $default_sidebar_class ) )
    	) {
    		woocommerce_get_sidebar();
    	}
    
    	echo '
    				</div> <!-- #content-area -->
    			</div> <!-- .container -->
    		</div> <!-- #main-content -->';
    }
    

    Thanks for using Perfect WooCommerce Brands.

    ??

    Hi

    Made a chiltheme of the divi theme now and in the childtheme a functions.php

    We running latest version of divi and wordpress.

    When we put in this solution we get a 500 error.

    So can you show me how to put this part into the functions.php or is this already old and must their be a new.

    Thanks

    Bill

    version divi is now 3.0.106

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce siderbar’ is closed to new replies.