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
/* Gravity Forms General */ | |
.gform_fields { padding: 0; margin: 0 0 10px; } | |
#main .gform_fields { margin: 20px 0; } | |
.gform_fields li, #main .gform_fields li { list-style-type: none; padding: 0; margin: 0 0 15px; } | |
select { background: #fbfbfb; } |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
/** | |
* start the customisation | |
*/ | |
function custom_woo_before_shop_link() { | |
add_filter('woocommerce_loop_add_to_cart_link', 'custom_woo_loop_add_to_cart_link', 10, 3); | |
add_action('woocommerce_after_shop_loop', 'custom_woo_after_shop_loop'); | |
} | |
add_action('woocommerce_before_shop_loop', 'custom_woo_before_shop_link'); |
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
/** | |
* Call Give Payment Gateways by Name | |
* | |
* @param $gateways | |
* | |
* @return mixed | |
*/ | |
function gr_override_gateway_labels( $gateways ) { | |
$gateways['authorize']['checkout_label'] = 'Authorize'; | |
$gateways['stripe']['checkout_label'] = 'Stripe'; |
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 | |
/** | |
* Load LayerSlider Scripts only when shortcode is present | |
* | |
* Deregister Scripts from LayerSlider if no shortcode in content | |
* Using do_shortcode function? See: http://wordpress.stackexchange.com/questions/20854/conditionally-loading-javascript-css-for-shortcodes/75915#75915 | |
*/ | |
function check_for_layerslider_shortcode() { | |
global $post; |
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
/** | |
* Give Custom Donation Total Label | |
* | |
* @return string|void | |
*/ | |
function my123_custom_donation_total_label(){ | |
return __('My Custom Label', 'my_textdomain'); | |
} |
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
//Mark Virtual Orders as Complete | |
add_filter( 'woocommerce_payment_complete_order_status', 'virtual_order_payment_complete_order_status', 10, 2 ); | |
function virtual_order_payment_complete_order_status( $order_status, $order_id ) { | |
$order = new WC_Order( $order_id ); | |
if ( $order_status == 'processing' && | |
( $order->status == 'on-hold' || $order->status == 'pending' || $order->status == 'failed' ) ) { | |
$virtual_order = true; |
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
/* Basic form style cleanup */ | |
ul#give-donation-level-radio-list { | |
list-style: none; | |
padding: 0; | |
} | |
ul#give-donation-level-radio-list input { | |
margin: 0 5px 0 3px; | |
} |
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
/*----------------------------------------- | |
Typography | |
--------------------------------------------*/ | |
img.alignleft, img.alignright, img.alignnone { | |
border-radius: 0; | |
border: none; | |
} |
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 | |
/* | |
Author: Doug Edgington | |
Description: modified version of Woocomemrce SSL functionality, forces ssl on Woocommerce pages and two additional custom pages | |
*/ | |
function dee_ssl_template_redirect() { | |
if ( ! is_ssl() ) { | |
if ( is_checkout() || is_account_page() || is_woocommerce() ) { |