Skip to content

Instantly share code, notes, and snippets.

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
<!-- Place somewhere in the <body> of your page -->
<div class="flexslider">
<ul class="slides">
<li>
<img src="slide1.jpg" />
</li>
<li>
<img src="slide2.jpg" />
</li>
<li>
@warrendholmes
warrendholmes / Flexslider header
Created March 11, 2014 07:45
Embed the Flexslider script
<!-- Place somewhere in the <head> of your document -->
<link rel="stylesheet" href="flexslider.css" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="jquery.flexslider.js"></script>
<!-- Place in the <head>, after the three links -->
<script type="text/javascript" charset="utf-8">
$(window).load(function() {
$('.flexslider').flexslider();
});
</script>
@warrendholmes
warrendholmes / gist:6493474
Created September 9, 2013 09:33
Instagram Slideshows shortcode.
[wooslider slider_type="instagram"]
[wooslider slider_type="attachments"]
[wooslider category="slide" slider_type="posts" overlay="natural" display_excerpt="false" id="4"]
{
"buyer_data":
{
"email": "string",
"first_name": "string",
"last_name": "string",
"order_id": "string",
"is_production": "string",
"action": "ACTION",
"products": [
* Feature – New input for shipping method title (as the customer sees it)
* Tweak – Made the currency DP rule apply to order totals for currencies which don’t have cent values https://github.com/woothemes/woocommerce/issues/1383
* Tweak – Made proceed to checkout button update totals too
* Tweak – Rewritten variation javascript to add scope. Please ensure that if you have a custom variable.php add to cart template, that you update them.
* Tweak – Classes for order info in my-account
* Tweak – Iconised order action buttons
* Tweak – Simplified order status markers
* Tweak – Product data tabs class change
* Tweak – Moved upsells above related products as they should have higher priority
* Tweak – Added utm_nooverride to improve tracking after paypal payment
@warrendholmes
warrendholmes / gist:3360943
Created August 15, 2012 15:15
Get featured image directory path
$wp_upload_dir = wp_upload_dir();
$wp_upload_dir_basedir = $wp_upload_dir['basedir'];
$thumbnail = get_post_meta( get_post_thumbnail_id( $post_id ) , '_wp_attached_file', true );
$thumbnail_path = trailingslashit( $wp_upload_dir_basedir ) . $thumbnail;