
I'm trying to use the YITH Ajax Product Filter on my WooCommerce site developed with Themler. Unfortunately the ajax widget just disappears when any filters are activated. As per the plugin developer's documentation, the problem commonly occurs when a sidebar is registered incorrectly as per the official WordPress standards:
(From [https://support.yithemes.com/hc/en-us/articles/231922648][1]):
Many users complain that they do not see the filter or reset the widget
list is not updated, the problem in most cases is this:The problem is in the before_widget arg in register sidebar settings.
The correct way to register a sidebar is:'before_widget' => '<li id class>'
, with id and class params, like you read in the WordPress Codex . Your theme use only classes and not the id.. Please, look here:
> https://codex.wordpress.org/Function_Reference/register_sidebar
>
> That amends must do the theme developer otherwise the first update will lose all changes.
Please change the way this code is rendered to fix this problem. Thanks!
[1]: https://support.yithemes.com/hc/en-us/articles/231922648 "YITH Support"
I'm trying to use the YITH Ajax Product Filter on my WooCommerce site developed with Themler. Unfortunately the ajax widget just disappears when any filters are activated. As per the plugin developer's documentation, the problem commonly occurs when a sidebar is registered incorrectly as per the official WordPress standards: > (From [https://support.yithemes.com/hc/en-us/articles/231922648][1]): > Many users complain that they do not see the filter or reset the widget > list is not updated, the problem in most cases is this: > > The problem is in the before_widget arg in register sidebar settings. > The correct way to register a sidebar is: `'before_widget' => '<li id class>'`, with id and class params, like you read in the WordPress Codex . Your theme use only classes and not the id.. Please, look here: > https://codex.wordpress.org/Function_Reference/register_sidebar > > That amends must do the theme developer otherwise the first update will lose all changes. Please change the way this code is rendered to fix this problem. Thanks! [1]: https://support.yithemes.com/hc/en-us/articles/231922648 "YITH Support"Last edited 09 August 2017 by batonac