Sidebar not loading in Shop Page
-
Hello Everybody
I am quite desperate here trying to solve this. I am customizing a Tisson Pro Theme to be WooCommerce ready (it is not). I already did what is suggested related to “Third party / custom / non-WC theme compatibility”, doing it in my own Child-Theme, and 1 million things more… But the sidebar still looks not loading in the Shop Page! I inspected the code, and looks like the problem is the following;
woocommerce.php
<?php get_header(); $sidebar = mfn_sidebar_classes(); ?> <!-- Content --> <div id="Content"> <div class="container"> <!-- .content --> <?php //open div if( $sidebar ) echo '<div class="content">'; //get woocommerce content woocommerce_content(); if( $sidebar ){ //close div echo '</div>'; } else { echo '<div class="clearfix"></div>'; } ?> <!-- Sidebar --> <?php if( $sidebar ){ get_sidebar(); } ?> </div> </div> <?php get_footer(); ?>The code is not entering
if( $sidebar ), somehow I cannot figure out why! I tried everything with no luck.Please if you could help me I will really appreciate it 🙂
The topic ‘Sidebar not loading in Shop Page’ is closed to new replies.