Hi. How can we help?

Cart widget still visible

It may happen that the cart widget is still visible when the “Disable Shop” is set to on.

This means that you need to pass the CSS class or the ID of the widget to the plugin through a filter like this:

if ( ! function_exists( 'my_ywctm_cart_widget_classes' ) ) {
  add_filter( 'ywctm_cart_widget_classes', 'my_ywctm_cart_widget_classes' );

  function my_ywctm_cart_widget_classes( $classes ) {
    $classes[] = 'CSS CLASS OR ID HERE';

     return $classes;

 }
}

If you don’t know how to retrieve the CSS class or the ID of an item, you can take a look here

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center >