Skip to content

Instantly share code, notes, and snippets.

@BillKarkavos
BillKarkavos / 0_reuse_code.js
Created July 24, 2014 14:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@BillKarkavos
BillKarkavos / css_resources.md
Created July 24, 2014 15:00 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@BillKarkavos
BillKarkavos / Skewed One Page Scroll.markdown
Created November 12, 2015 15:24
Skewed One Page Scroll
@BillKarkavos
BillKarkavos / Removes the attribute from the product title, in the cart.
Created March 20, 2018 11:07
Removes the attribute from the product title, in the cart - WC3
/**
* Removes the attribute from the product title, in the cart.
*/
function remove_variation_from_product_title( $title, $cart_item, $cart_item_key ) {
$_product = $cart_item['data'];
$product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key );
if ( $_product->is_type( 'variation' ) ) {
if ( ! $product_permalink ) {
return $_product->get_title();
} else {