Before you ask please READ THIS

sidebars and woocommerce

edited September 2014 in Superior Posts: 31
Hi!
I'm trying to integrate woocommerce in superior theme but sidebars is not showing in my main shop page.
I've read instructions and follow them: i've created a custom sidebar but it doesn't appear. can you help me, please?
look at: shop .culinaria.it

thanks in advance,
michela

Comments

  • AirAir
    Posts: 10,970
    Hi there:-)

    First you have to create sidebar, but you already did it.
    Next fill this sidebar with widgets in Appearance->Widgets menu.
    Next go to Pages, find shop page, edit it, and there select proper sidear in option Sidebar to show.

    Make sure non cache plugin is blocking you from seeing effects :-)

    Hope that helps.

    With regards.
  • Hi,
    I've already did it but the sidebar is still not showing on the shop page.
    I've cleaned my cache but nothing happens.
    Maybe have I to change some template or page layout settings?
  • AirAir
    Posts: 10,970
    Could you please send me temporary access to your WP so I could check there what is going on? Send it here on forum via private message(click on my nick and there you will find option "Send Air a Message"). In message please attach link to topic it applies to.

    With regards.
  • AirAir
    Posts: 10,970
    OK now I see that issue is with setting up shop as front page. Please go to sidebar.php line ~13 and change this
    
                echo '<aside id="secondary" class="widget-area light-theme" role="complementary">';
    
                //if has children nav and it is activated
                $sidebar_meta = $apollo13->get_meta('_widget_area');
    
    to
    
    	        $meta_id = false;
    	        if(get_option('show_on_front') !== 'posts'){
    		        if(is_front_page()){
    			        $meta_id = get_option( 'page_on_front' );
    		        }
    		        elseif(is_home()){
    			        $meta_id = get_option( 'page_for_posts' );
    		        }
    	        }
    
                echo '<aside id="secondary" class="widget-area light-theme" role="complementary">';
    
                //if has children nav and it is activated
                $sidebar_meta = $apollo13->get_meta('_widget_area', $meta_id);
    
    This should fix it.

    With regards.
  • thank you so much: it works!

    michela
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!