Skip to content

Instantly share code, notes, and snippets.

@josephfusco josephfusco/console.js

Last active Oct 29, 2016
What would you like to do?
// generates Upfront child theme icon font code from
var jq = document.createElement('script');
jq.src = "";
var $=jQuery.noConflict();
var icons = [];
$(".glyph .unitRight input").each(function(){icons.push($(this).val());});
var iconsString = '\'font_icons\' => \'["'+icons.join('", "')+'"]\',';
console.log('%c Copy & paste everything below in red into your child themes settings.php array: ', 'color: #69c07b');
console.log('%c'+iconsString, 'color: red');
console.log('%c Total Icon Count: '+icons.length, 'color: #156dff');
}, 3000);
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.