开发者 |
automattic
woothemes |
---|---|
更新时间 | 2016年7月25日 19:24 |
PHP版本: | 4.1 及以上 |
WordPress版本: | 4.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
<input type="number" />
.
However, you may want to have JavaScript powered inputs if you want greater control over appearance. Simply install and activate this plugin to do so.
It optionally includes a Number Polyfill, which is a polyfill for implementing the HTML5 <input type="number">
element in browsers that do not currently support it.
To include this, add the following code to your theme's functions.php
file:
add_action( 'wp_enqueue_scripts', 'wcqi_enqueue_polyfill' ); function wcqi_enqueue_polyfill() { wp_enqueue_script( 'wcqi-number-polyfill' ); }
woocommerce-quantity-increment
to the /wp-content/plugins/
directory or search for 'WooCommerce Quantity Increment' from Plugins > Add New.You can add the following to your functions.php
file:
add_action( 'wp_enqueue_scripts', 'wcs_dequeue_quantity' ); function wcs_dequeue_quantity() { wp_dequeue_style( 'wcqi-css' ); }
This will dequeue the plugin’s stylesheet.