Home › Forums › Basel support forum › WooCommerce Show Variations as Single Products
WooCommerce Show Variations as Single Products
- This topic has 10 replies, 2 voices, and was last updated 4 years ago by Elise Noromit.
-
AuthorPosts
-
March 24, 2020 at 10:54 pm #182093
effiekyrParticipantHi, we have installed this plugin on the site:
https://codecanyon.net/item/woocommerce-show-variations-as-single-products/25330620
but it requires Redux Framework and when we activate the Redux Framework plugin, it messes up the Theme settings, for example the footer changes to dark, the colors also change.
The author of the plugin WooCommerce Show Variations as Single Products suggested we ask help from you.March 25, 2020 at 9:27 am #182171
Elise NoromitMemberHello,
You need to find the file basel\inc\classes\Theme.php and delete this line: https://prnt.sc/rmdrno
Then add this line:
add_filter( 'basel_redux_settings', '__return_false' );
to the functions.php file of the child theme.Best Regards
March 25, 2020 at 11:01 am #182204
effiekyrParticipantWe tried what you suggested in the Child theme but it didn’t work. We had to edit the Theme.php file in the Parent theme. It seems the file in the Child theme does not override the parent theme’s file. Can we do it through the Child?
March 25, 2020 at 2:19 pm #182279
Elise NoromitMemberHello,
You need to delete the line in the parent theme and add another one into the child. Did you do the same?
Best Regards
March 25, 2020 at 3:59 pm #182298
effiekyrParticipantCan you explain please? What do you mean when you say “add another one”?
March 25, 2020 at 4:43 pm #182303
Elise NoromitMemberHello,
You need to find the file basel\inc\classes\Theme.php and delete this line: https://prnt.sc/rmdrno in the parent theme.
Then add this line: add_filter( ‘basel_redux_settings’, ‘__return_false’ ); to the functions.php file of the child theme.
Best Regards
March 25, 2020 at 4:49 pm #182305
effiekyrParticipantYes that’s what I did but wouldn’t it be better if we made the changes in the child theme instead of the parent theme if it could be overriden?
March 25, 2020 at 8:56 pm #182335
Elise NoromitMemberHello,
The child theme does not have
basel\inc\classes\Theme.php
So you cannot delete anything from the child theme you can only add code to functions.phpBest Regards
March 25, 2020 at 9:02 pm #182337
effiekyrParticipantI have added the file to the Child theme but it does not override the Parent theme’s file.
March 25, 2020 at 9:08 pm #182340
effiekyrParticipantPlease see the attachment:
https://prnt.sc/rmsjz8March 26, 2020 at 8:24 am #182410
Elise NoromitMemberHello,
The parent theme change is necessary to make it work now and the line in the child theme is necessary to make it work when we add the feature in the nearest update.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register