Skip to content

Instantly share code, notes, and snippets.

@josephfusco josephfusco/console.js

Last active Oct 29, 2016
Embed
What would you like to do?
// generates Upfront child theme icon font code from https://icomoon.io/app/#/select/font
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setTimeout(function(){
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.