Hello!
The buttons are created by WooVina theme. The CSS styling leads to CSS file in this theme’s path. You can try to find whether there is a clean way not to show these buttons through theme settings or dequeuing scripts (I can tell they are JavaScript-generated because they show on the page with delay). Or you can simply hide them via CSS in your child theme:
.quantity .minus, .quantity .plus {
display: none;
}
Please try to find this code, line 432 in plugin’s .php file:
if ( $args['qib_archive_after'] = "Before Add to cart" ) {
add_action( 'woocommerce_after_shop_loop_item', 'qib_quantity_field_archive', 9 );
} else {
add_action( 'woocommerce_after_shop_loop_item', 'qib_quantity_field_archive', 11 );
}
This does not work correctly because the theme changes quite a bit on archive pages. You can replace this code with the following (I checked theme’s file responsible for archive page to get the hooks), save changes, clear cache and see if it works:
if ( $args['qib_archive_after'] = "Before Add to cart" ) {
add_action( 'woovina_before_archive_product_add_to_cart_inner', 'qib_quantity_field_archive' );
} else {
add_action( 'woovina_after_archive_product_add_to_cart_inner', 'qib_quantity_field_archive' );
}
If this works, I can add these exceptions for this specific theme on the next plugin release.
Best regards,
Ryszard
-
This reply was modified 4 years, 10 months ago by taisho.