BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Child Theme not activating a woocommerce template
Tagged: widget, WooCommerce
- This topic has 25 replies, 5 contibutors, and was last updated 9 years, 2 months ago by Anonymous.
Question
July 18, 2015 at 8:35 am #42955@matthewjamesboyd1984OK, Sounds good, I’ll give it a try and let you know how it goes.
Thanks
Answers
July 18, 2015 at 9:01 am #42957@matthewjamesboyd1984@tjchester @bentasm1
It worked!
Thanks for your help TJ! And Ben thank you too.
So, for now I will need to remove woocommerce.php whenever I update the Boss parent them is that right?
If you are going to update the theme with this fix so I no longer need to remove woocommerce.php could you let me know?
Thanks again both of you!
July 18, 2015 at 9:26 am #42960@bentasm1@matthewjamesboy
If WooCommerce detects woocommerce.php — It uses it.
If WooCommerce does not detect woocommerce.php, it then uses anything from /themes/yourtheme/woocommerce/*.* as its template structure, if those templates exist.
Ben
July 18, 2015 at 12:50 pm #42975@alyssa-buddyboss
AlyssaParticipant@matthewjamesboyd1984 @bentasm1 I’ll send this fix to the developers for the next release. 🙂
July 19, 2015 at 4:51 am #42997@matthewjamesboyd1984Excellent, thanks for your help TJ
Mat
July 19, 2015 at 5:56 am #42999@matthewjamesboyd1984@tjchester
Hi TJ, I’ve just noticed a couple of issues:
1. There is a sidebar in both the single product view and shop page (even if I have no widgets in the ‘Page Sidebar (default)’ or ‘Woocommerce -> Shop’ widget areas.
2. No widgets are visible when dropped in the ‘Woocommerce -> Shop’ widget area
3. The widgets (including filters) work if I drop them in the ‘Page Sidebar (default)’ widget area but then that sidebar displays on all my other pages that use a default page template
I think what I need is this:
1. The widgets to work when dropped in the ‘Woocommerce -> Shop’ widget area
2. The sidebar to not be displayed in the single product view page
How can I achieve this? Just let me know if you need access to my wordpress backend to have a look.
Thanks in advance,
MatJuly 20, 2015 at 8:15 am #43041@alyssa-buddyboss
AlyssaParticipant@matthewjamesboyd1984 I’m afraid these were the issues our developers previously ran into and why we were using the woocommerce.php file to begin with. WooCommerce is not as easily integrated as I originally thought. I will keep this on the request list but is not something I am able to solve. Sorry. I’ll let you know if I am able to get anything working before the developers.
July 20, 2015 at 8:23 am #43043@matthewjamesboyd1984@tjchester
Ok, fair enough. Thanks for looking into it for me.
July 21, 2015 at 6:27 pm #43113@alyssa-buddyboss
AlyssaParticipant@matthewjamesboyd1984 copy sidebar.php to your child theme find this:
<?php if (is_active_sidebar('sidebar') ) { ?>
change to this:<?php if ( is_shop() && is_active_sidebar('woo_sidebar') ){ dynamic_sidebar('woo_sidebar'); } ?> <?php if (!is_shop() && is_active_sidebar('sidebar') ) { ?>
August 26, 2015 at 2:53 am #45155@lahirHi,
Similar issue here, No widgets are visible when dropped in the ‘Woocommerce -> Shop’ widget area
Please let me know
August 26, 2015 at 9:54 am #45162@
AnonymousHi @lahir, Its not related to it, I have got your login details, i will update you shortly.
woocommerce.php file is removed from Boss parent theme (1.1.9).
I will close this topic , if you have any further issues please open a new topic
Regards
- The question ‘Child Theme not activating a woocommerce template’ is closed to new replies.