Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.