Skip to content

Instantly share code, notes, and snippets.

@bowatts
bowatts / woocommerce-taxonomies.php
Created May 22, 2015 13:37
WooCommerce Custom Taxonomies
<?php
// $taxonomies array creates new taxonomies
// This would create product and collection taxonomies
if ( class_exists( 'Woocommerce' ) ) {
class pe_wc_product_custom_taxonomy
{
var $taxonomies = array(
'product',
'collection'
@bowatts
bowatts / acf_installed.php
Created May 22, 2015 14:44
ACF installed
<?php
if ( class_exists( 'acf' ) ) {
//something
}
@bowatts
bowatts / woocommerce_installed.php
Created May 22, 2015 14:45
WooCommerce Installed
<?php
if ( class_exists( 'Woocommerce' ) ) {
//something
}
@bowatts
bowatts / gravity_forms_bootstrap.css
Created May 28, 2015 14:57
gravity_forms_bootstrap.css
/* Gravity Forms */
.gform_wrapper ul {
padding-left: 0;
list-style: none;
}
.gform_wrapper li {
margin-bottom: 15px;
}
@bowatts
bowatts / gravity_forms_styling_fix.js
Created May 28, 2015 14:57
gravity_forms_styling_fix.js
jQuery('.gform_wrapper').unwrap().unwrap();
jQuery('.gform_button').addClass('btn btn-default');
jQuery('.gform_body input').addClass('form-control');
jQuery('.gform_body textarea').addClass('form-control');