Creating New Icon Pack
Question:
- Can you think of any steps that we are missing?
- Even if we didn’t have the full list of icons in the font added to the font-js-classes.php, font-classes.php, and icon-contents.php files, is there any reason that the one icon that we’ve added manually to these three files wouldn’t show? (assuming we’ve added it to those files correctly)
- Can you give us any additional information that might help us make this work?
Answer:
Here are some of our answers regarding the questions:
Can you think of any steps that we are missing?
A way to generate a 'searchable' list for Visual Composer. Which we'll mention the steps on the last question.
Even if we didn’t have the full list of icons in the font added to the font-js-classes.php, font-classes.php, and icon-contents.php files, is there any reason that the one icon that we’ve added manually to these three files wouldn’t show?
It is probably because the icon isn't loaded properly.
Can you give us any additional information that might help us make this work?
As what mentioned earlier regarding the "python scripts for generating these lists" here is how we do it:
Step 1. Add a CSS folder with your icon CSS. You can always just copy the style from our existing ones.
Step 2. look for 'util-generate-php-icon-css.py', edit it and comment out line 5 to prevent from closing.
Step 3. Run 'util-generate-php-icon-css.py' from your plugin folder.
Step 4. Copy the contents it generated from /tmp/icons.php to icon-contents.php
From there, your icons should load properly.