Skip to content

Instantly share code, notes, and snippets.

Jordan Haines Jordanairwave

View GitHub Profile
@malarkey
malarkey / Contract Killer 3.md
Last active Jul 13, 2020
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@remy
remy / gist:2484402
Created Apr 24, 2012
jquery.marquee.js
View gist:2484402
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
@mikejolley
mikejolley / gist:2044109
Last active Jun 8, 2020 — forked from jameskoster/header.php
WooCommerce - Update number of items in cart and total after Ajax
View gist:2044109
<?php
// Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php)
add_filter( 'woocommerce_add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment' );
function woocommerce_header_add_to_cart_fragment( $fragments ) {
ob_start();
?>
<a class="cart-contents" href="<?php echo wc_get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php echo sprintf (_n( '%d item', '%d items', WC()->cart->get_cart_contents_count() ), WC()->cart->get_cart_contents_count() ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a>
<?php
You can’t perform that action at this time.