Skip to content

Instantly share code, notes, and snippets.

View JoelEadeDesign's full-sized avatar

Joel Eade JoelEadeDesign

View GitHub Profile
@JoelEadeDesign
JoelEadeDesign / Exclude Free Shipping
Last active August 29, 2015 14:22
WooCommerce Exclude Free Shipping For Specific User Roles
<?php
/* Free shipping for non-stockists
* Adapted from Sean Barton's snippet
* http://www.sean-barton.co.uk/2014/04/wordpress-snippet-woocommerce-free-shipping-role/#.VW_FaVyqpBc
* Click "Clear transients" (WooCommerce > System Status > Tools) if it's not working.
*/
add_filter( 'woocommerce_package_rates', 'my_woocommerce_set_free_shipping_for_certain_users', 10, 1);
@JoelEadeDesign
JoelEadeDesign / SassMeister-input.scss
Created June 1, 2015 11:15
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
.woo_sc_links {
margin: 0 0 30px;
}
.woo_sc_link {
width: auto!important;
@JoelEadeDesign
JoelEadeDesign / gist:d0334fb8bb77dcec2300
Last active August 29, 2015 14:05
Fixed Position Button for WooFramework 6
/* ----------------------------- */
/* ADMIN CSS
/* Pop this in your theme's functions.php file
/* ----------------------------- */
add_action('admin_head', 'my_custom_css');
function my_custom_css() {
echo '<style>
.wf-wrap p.submit {