Skip to content

Instantly share code, notes, and snippets.

View blupinto's full-sized avatar

Andrea blupinto

View GitHub Profile
namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
animation: "fade", //String: Select your animation type, "fade" or "slide"
easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
reverse: false, //{NEW} Boolean: Reverse the animation direction
animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
startAt: 0, //Integer: The slide that the slider should start on. Array nota
@blupinto
blupinto / html5_template.html
Created November 10, 2015 21:01 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
@blupinto
blupinto / hide-shipping-when-free-shipping-is-available.php
Last active January 12, 2016 17:58 — forked from mikejolley/gist:11171530
Hide all/some shipping options when free shipping is available
/**
* woocommerce_package_rates is a 2.1+ hook
*/
add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 );
/**
* Hide shipping rates when free shipping is available
*
* @param array $rates Array of rates found for the package
* @param array $package The package array/object being shipped
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@blupinto
blupinto / woocommerce-optimize-scripts.php
Last active August 29, 2015 14:14 — forked from DevinWalker/woocommerce-optimize-scripts.php
If you need to load WooCommerce scripts on your site outside the shop and checkout pages then you can easily modify this script to work for your specific situation. For instance, if you wanted to also load WooCommerce scripts on your homepage you would add !is_home to the conditions.
/**
* Optimize WooCommerce Scripts
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages.
*/
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
@blupinto
blupinto / 0_reuse_code.js
Last active August 29, 2015 14:13
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
@blupinto
blupinto / content-page.php
Last active August 29, 2015 14:12
Templates Part - Content Page with custom title class.
<?php
/**
* The template part used for displaying page content in page.php
* with customization of entry-title classes.
*
* @package ${1:themename}
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>