This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The following code replaces the contents of input-tool.php in the Grizzly theme by LeafThemes on Themeforest.net: https://themeforest.net/item/grizzly-responsive-app-showcase-corporate/1546240/ | |
* Details on how to implement this patch here: https://wordx.press/?p=9668 | |
*/ | |
class input_tool { | |
var $options; | |
var $config; | |
var $saved_data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS to use FontAwesome icons in place of normal checkboxes and radio buttons. | |
Tested on WordPress, should work most places. */ | |
/* hide the OS/browser checkboxes/radio buttons */ | |
input[type=checkbox], input[type=radio] { | |
visibility: hidden; | |
margin: 0; | |
width: 0!important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce Disable Quantity Per Product | |
* Plugin URI: https://gist.github.com/FiddlerStudios/78308937c3550e5d7d26 | |
* Description: Allows you to disable the quantity option on individual products. | |
* Version: 0.2 | |
* Author: Andrew Benbow | |
* Author URI: https://gist.github.com/ChromeOrange | |
*/ | |