• angelfserna

    (@angelfserna)


    Hello, I have a problem with the plugin, when I hide the add to cart button in “display options” the WhatsApp button also disappears….

    What I can do? It is very important to me

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • gunjackson

    (@gunjackson)

    Yeah, me too. I hope in the next update the issue will be fixed. Thanks
    I love this plugin.

    I also had this problem. It appears to be because the Whatsapp button is using the same CSS selector as the add to cart button.

    A temporary solution was to hide the cart button using javascript in the theme’s functions.php.

    I used this code:

    /**OCULTA O BOT?O DE COMPRAR DO WOOCOMMERCE SEM OCULTAR O BOT?O DO WHATSAPP*/
    function custom_css_addition() {
        if (is_product()) {
            echo '<style>
                    body.single-product form.cart button.single_add_to_cart_button {
                        display: none !important;
                    }
                </style>';
        }
    }
    add_action('wp_head', 'custom_css_addition');

    You may have to inspect the element on your product page to see if it is the same CSS selector. Good luck and I hope the developer fixes this. From what I understand, he just needs to remove these button classes as they are generating conflict with the same Woocommerce button classes.

    @andrepascoa2019 thank you! you save me! hope you find the happiness you desire

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.