Woocommerce – Widget are goes down
-
Hello,
I have a site that combines a blog with a shop, using Graphene Plus.
In order to display properly the sub-categories in the shop page, I added the following line to the function.php file:
add_theme_support( 'woocommerce' );
When I display any post or regular content, the site displays properly with the widget sidebar area on the Left, as intended.
After the added line, when I display the shop, the widget area goes down, and is displayed beneath the shop page.
Any help on how to display the sidebar properly on the left?OK, after comparing the reguler post layout and the Woocommerce shop, for some odd reason the structure is not the same:
in the regular structure is:<div class="container container-full-width-boxed"> <div class="container container-full-width-boxed"> <div id="content-main" class="clearfix content-main col-md-8">...</div> <!-- #content-main --> <div id="sidebar1" class="sidebar sidebar-right widget-area col-md-4">...</div> <!-- #sidebar1 --> </div> </div>
The Woocommerce problamatic code is structured:
<div id="content" class="clearfix hfeed row"> <div class="container container-full-width-boxed"> <div id="content-main" class="clearfix content-main col-md-8"> <div id="primary" class="content-area">...</div> <div id="sidebar1" class="sidebar sidebar-right widget-area col-md-4">...</div> <!-- #sidebar1 --> </div> <!-- #content-main --> </div>
It seems Woocommerce adds a content area calle “primary”, and adds both the sidebar and the new content area into “content-main”, instead of being side by side.
How can I fix this?
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.