Skip to content

Instantly share code, notes, and snippets.

View tevyaw's full-sized avatar

Tevya Washburn tevyaw

View GitHub Profile
@tevyaw
tevyaw / input-tool.php
Last active May 1, 2018 16:29
Make Grizzly WordPress theme from Themeforest PHP 7 compatible
<?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;
@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
*/