Skip to content

Instantly share code, notes, and snippets.

View asha23's full-sized avatar
🎩
Working from home

Ash Whiting asha23

🎩
Working from home
View GitHub Profile
@asha23
asha23 / index.html
Last active September 19, 2016 14:07
Sticky Back to Top Button
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Back to Top</title>
<!-- Stylesheets -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css' />
<!-- Scripts -->
@asha23
asha23 / tax-args.php
Created March 4, 2016 11:39
Args to return a taxonomy
<?php
$args = array(
'post_type' => 'saturday',
'posts_per_page' => -1,
'orderby' => 'menu_order',
'order' => 'ASC',
'tax_query' => array(
'relation' => 'AND',
array(
@asha23
asha23 / tax-title.php
Created March 4, 2016 11:37
Get the taxonomy and use it as a title (single taxonomies only)
<?php
global $post;
$trm = get_post_type($post);
$taxonomies = get_object_taxonomies($trm);
$terms = wp_get_object_terms( $post->ID, $taxonomies[0] );
foreach( $terms as $term ):
$term_names[] = $term->name;
@asha23
asha23 / respondvid.js
Created March 1, 2016 17:20
Responsive video
(function ( window, document, undefined ) {
/*
* Grab all iframes on the page or return
*/
var iframes = document.getElementsByTagName( 'iframe' );
/*
* Loop through the iframes array
*/
@asha23
asha23 / animation.css
Last active October 13, 2016 11:46
Wordpress/Isotope
/* Start: Recommended Isotope styles */
/**** Isotope Filtering ****/
.isotope-item {
z-index: 2;
}
.isotope-hidden.isotope-item {
@asha23
asha23 / Button Click Ripples.markdown
Created February 24, 2016 11:37
Button Click Ripples
@asha23
asha23 / folio.demo.markdown
Created February 23, 2016 12:00
folio.demo
@asha23
asha23 / BRICKS.markdown
Created February 23, 2016 11:58
BRICKS
@asha23
asha23 / breakpoint-mixins.scss
Created February 22, 2016 13:15
Bootstrap Breakpoint Mixins
// Useful breakpoint mixins
// Media queries (max-width);
// @include respond-to('phone');
$breakpoints-max: (
'phone' : ( max-width: $screen-phone ),
'phone-large' : ( max-width: $screen-xs-max ),
'tablet' : ( max-width: 1024px ),
'small' : ( max-width: $screen-sm-max ),