Skip to content

Instantly share code, notes, and snippets.

View burnified's full-sized avatar

Mark Johnson burnified

  • Media Post, Inc.
View GitHub Profile
/* hide page until respond.js runs */
html,body{display: none;}
/* respond.js is ready, let's roll */
@media screen and (min-width: 1px) {
html,body{
display: block;
}
}
@burnified
burnified / gist:c848a10cf0d9009cfadd
Last active August 29, 2015 14:23
WooCommerce Category Sort
add_filter('woocommerce_get_catalog_ordering_args', 'bf_woocommerce_catalog_orderby');
function bf_woocommerce_catalog_orderby( $args ) {
$args['orderby'] = 'date';
$args['order'] = 'desc';
$args['meta_key'] = '';
return $args;
}
@burnified
burnified / iOS DoubleClick Nightmare
Created February 11, 2015 16:44
iOS DoubleClick Nightmare
$('a').on('click touchend', function(e) {
var el = $(this);
var link = el.attr('href');
window.location = link;
});
@burnified
burnified / gist:16a35d6ba23631d22428
Last active August 29, 2015 14:11
Remove Ninja Forms' CSS Action
remove_action( 'ninja_forms_display_css', 'ninja_forms_display_css');
@burnified
burnified / jquery columnlist
Created June 17, 2014 21:51
jquery columnlist
$('ul').columnlist({
size : 2,
'class' : 'your-column-list-class',
incrementClass : 'your-column-list-class-'
});
@burnified
burnified / gist:1248b752e8c92cb8c4c7
Created June 16, 2014 16:17
Add to your gulpfile.js / Using Gulp for some SVG>PNG time saving
var raster = require('gulp-raster');
var rename = require('gulp-rename');
gulp.src('./src/**/svg/*.svg')
.pipe(raster())
.pipe(rename({extname: '.png'}))
.pipe(gulp.dest('./dist')),
@burnified
burnified / Hiding File Types in Sublime Text
Last active August 29, 2015 14:02
Hiding File Types in Sublime Text
{
"folders":
[
{
"path": "/your/path/here/dawg",
"folder_exclude_patterns": [".*"],
"file_exclude_patterns": [".*"]
}
]
}
@burnified
burnified / Enqueue Typekit via Wordpress
Created March 28, 2014 19:25
Enqueue Typekit via Wordpress
/*** TypeKit Fonts ***/
function theme_typekit() {
wp_enqueue_script( 'theme_typekit', '//use.typekit.net/hoo8stk.js');
}
add_action( 'wp_enqueue_scripts', 'theme_typekit' );
function theme_typekit_inline() {
if ( wp_script_is( 'theme_typekit', 'done' ) ) { ?>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>