Skip to content

Instantly share code, notes, and snippets.

View tevyaw's full-sized avatar

Tevya Washburn tevyaw

View GitHub Profile
@tevyaw
tevyaw / fa-checkbox-gravity-forms.css
Last active May 17, 2018 18:06 — forked from anonymous/gist:bb598b378a2f662b95f507f069ed8339
FontAwesome Checkboxes and Radio Buttons CSS
/* 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;
}
@tevyaw
tevyaw / woocommerce-disable-quantity-per-product.php
Last active August 29, 2015 14:19 — forked from ChromeOrange/functions.php
This is a fork of this: https://gist.github.com/ChromeOrange/3200974 which allows you limit individual products in WooCommerce to a quantity of 1 for that item, per order. It also removes the quantity field on any items with this setting turned on. For this fork I simply added the comments to make it a WP plugin instead of needing to be added to…
<?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
*/