Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    what theme you are using? what is the url of your website?

    Hi! I have same issue. My theme url, and my website url.

    YITH WooCommerce Catalog Mode plugin is active.

    Hello,

    I’m having the same issue with the Storefront theme. I have updated both the theme and WordPress to the newest versions (Storefront 2.0.0 and WordPress 4.5.2). Catalog mode is active, but the cart still appears in the menu.

    My site is currently in ‘Coming Soon’ mode, so the URL isn’t visible unless you are logged in. Thank you!

    Plugin Author YITHEMES

    (@yithemes)

    Hi @sagva, @artemlime, @tharrisadamaxinc,
    we just sent an update that implements a filter that should solve your problem.
    Update the plugin and add this function to the functions.php of your themes:

    if ( function_exists( 'YITH_WCTM' ) ) {
    
        add_filter( 'ywctm_cart_widget_classes', 'ywctm_cart_widget_classes' );
    
        function ywctm_cart_widget_classes( $classes ) {
    
            //your widget css class names including "."
    
            $classes[] = '.my-class-1';
            $classes[] = '.my-class-2';
            $classes[] = '.my-class-3';
            $classes[] = '....';
    
            return $classes;
    
        }
    
    }

    to get the names of the classes, in the browser window, right-click on the item and select “Inspect”.

    Thanks for your reply!

    I made the recommended changes, but it still does not work((

    Plugin version: 1.3.7
    My plugin setting: screen.

    My functions.php code:

    if ( function_exists( 'YITH_WCTM' ) ) {
    
        add_filter( 'ywctm_cart_widget_classes', 'ywctm_cart_widget_classes' );
    
        function ywctm_cart_widget_classes( $classes ) {
    
            //your widget css class names including "."
    
            $classes[] = '.cart';
            $classes[] = '.cart_icon';
    
            return $classes;
    
        }
    
    }

    Yes, i can make “display: none” for this classes, but it`s not right way.

    Please, help!

    Yeah! I find this code in my theme header.php:

    <?php if(class_exists('Woocommerce')): ?>
           <?php get_template_part('includes/view/woocommerce', 'cart'); ?>
    <?php endif; ?>

    I removed this code, and it worked!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cart-Icon in menu still showing’ is closed to new replies.