This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a').on('click touchend', function(e) { | |
var el = $(this); | |
var link = el.attr('href'); | |
window.location = link; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'ninja_forms_display_css', 'ninja_forms_display_css'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('ul').columnlist({ | |
size : 2, | |
'class' : 'your-column-list-class', | |
incrementClass : 'your-column-list-class-' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"folders": | |
[ | |
{ | |
"path": "/your/path/here/dawg", | |
"folder_exclude_patterns": [".*"], | |
"file_exclude_patterns": [".*"] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** 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> |