Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active September 13, 2015 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilgee/65346978f0d2404c581e to your computer and use it in GitHub Desktop.
Save neilgee/65346978f0d2404c581e to your computer and use it in GitHub Desktop.
SVG Fallabacks
svgeezy.init(false, 'png');
svgeezy.init('nocheck', 'png'); // this will tell the plugin to not check images with a class of 'nocheck'
<?php //<~ don't add me in
//* Loads SVG fallbacks
add_action( 'wp_enqueue_scripts', 'svgeezy_enqueue_scripts' );
function svgeezy_enqueue_scripts() {
wp_enqueue_script( 'svgeezy', get_bloginfo( 'stylesheet_directory' ) . '/js/svgeezy.min.js', array(), '1.0.0', true );
wp_enqueue_script( 'svgeezy-init', get_bloginfo( 'stylesheet_directory' ) . '/js/svgeezy-init.js', array('svgeezy'), '1.0.0', true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment