Skip to content

Instantly share code, notes, and snippets.

View kazoowee's full-sized avatar

Jacob Anderson kazoowee

  • UNIQ Marketing & Design
  • Edinburgh, United Kingdom
View GitHub Profile
@DanielSantoro
DanielSantoro / codesnippet.php
Last active December 22, 2017 17:12
Show Number of items in Cart and Subtotal (insert into template)
// Use in conjunction with https://gist.github.com/DanielSantoro/948c5000850c4695f30db8542f8bc966
<a class="cart-customlocation" 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>
@landru247
landru247 / Contact Form 7: validation.css
Created April 2, 2014 16:55
Contact Form 7: validation - removes the error/success message and removes the default field validation and replaces with colored fields
div.wpcf7-response-output, div.wpcf7-validation-errors { display: none !important; }
span.wpcf7-not-valid-tip { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: red; background-color: rgba(153,0,0,0.3); }