'style="display: none;" >' Displaying in sidebar
-
Hello,
We are using the plugin with multiple widgets to filter on several different types of attributes, some of which don’t show in certain searches/categories. There seems to be a bug when a widget is not used for a particular search,
style="display:none;" >
displays to the user because it is inserted after the closing>
of the widget div.I think I’ve located the source of the problem:
if ( ! $found ) { ob_end_clean(); echo substr($before_widget, 0, strlen($before_widget) - 1) . ' style="display:none">' . $after_widget; } else { echo ob_get_clean(); }
Editing yith-woocommerce-ajax-navigation/widgets/class.yith-wcan-navigation-widget.php line 656 to read
echo substr($before_widget, 0, strlen($before_widget) - 2) . ' style="display:none">' . $after_widget;
seems to sort the problem – can this be fixed in the next release of the plugin please?
Thanks!
https://www.ads-software.com/plugins/yith-woocommerce-ajax-navigation/
- The topic ‘'style="display: none;" >' Displaying in sidebar’ is closed to new replies.