woocommerce issue: the right sidebar disappear
-
Hey just bumped into the next issue
when i click on the shop link the right sidebar dissapeares.
it is working for the other pages but not for the shop pageworking:
http://test.rastark.se/wordpress/?page_id=58
not working:
http://test.rastark.se/wordpress/?post_type=product
-
the right sidebar on woocommerce is removed automatically as it doesnt function well with the theme.
You can get the sidebar back on by removing this line from functions.php:
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
thx man. awsume theme i really do like it 🙂
now i tried it and as you said it it is not function well. would be great if you could fix that. The theme travelify supports it just in case u wanna look at it
Can you activate the sidebar and let me know? I will see how it looks.
sure, it is active now.
butik means shop
there u can even see how it shows catogories i was talking about in this thread:
I see you changed the theme. can you change back to asteria lite and let me know?
now i changed to asteria again and i activated the sitebar by
deleting the code in function.phpthe sidebar looks ok. its displaying the same result as the other theme..
how did you want it?let me make some screenshots.
This is how it looks with travelify and how i want it. next to the products:
http://i39.tinypic.com/6hi1k9.png
this is how it looks like when i use asteria:http://i40.tinypic.com/2wc4jcw.png
in asteria the sidebar appears under the shop items not next to them
i am using Chrome Version 32.0.1700.76 mhmm.. I did not see the product list page, I just checked the single product page. can you switch back to asteria and let me know?
hey asteria is installed
add this to your stylesheet:
.wooinner{width: 96%;float: left;background: #fff;padding: 2%;}
.woowrap{width: 80%;margin: 0 auto;}
.post-type-archive-product #container{width: 68%;float: left;background: #fff;}
.post-type-archive-product #container .fixed_site{width:100%;}then add this to your footer.php:
<script type="text/javascript"> jQuery(window).ready(function() { jQuery('.post-type-archive-product #container, .post-type-archive-product #sidebar').wrapAll('<div class="woowrap"><div class="wooinner"></div></div>'); }); </script>
just before
<?php wp_footer(); ?>
now it is working for the product list page ;:) yeaaaaah 🙂 nice work around. But still not working on the single product page. 🙁 having headaches yet?
replace the css code with this:
.wooinner{width: 96%;float: left;background: #fff;padding: 2%;} .woowrap{width: 80%;margin: 0 auto;} .post-type-archive-product #container, .single-product #container{width: 68%;float: left;background: #fff;} .post-type-archive-product #container .fixed_site, .single-product #container .fixed_site{width:100%;}
and the footer code with:
<script type="text/javascript"> jQuery(window).ready(function() { jQuery('.single-product #container, .single-product #sidebar, .post-type-archive-product #container, .post-type-archive-product #sidebar').wrapAll('<div class="woowrap"><div class="wooinner"></div></div>'); }); </script>
- The topic ‘woocommerce issue: the right sidebar disappear’ is closed to new replies.