WooCommerce Show Variations as Single Products
-
Hi, 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.
Hello,
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
We 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?
Hello,
You need to delete the line in the parent theme and add another one into the child. Did you do the same?
Best Regards
Can you explain please? What do you mean when you say “add another one”?
Hello,
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
Yes 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?
Hello,
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.php
Best Regards
I have added the file to the Child theme but it does not override the Parent theme’s file.
Please see the attachment:
https://prnt.sc/rmsjz8
Hello,
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