Glyphs plugin for e107 #5363
Jimmi08
started this conversation in
Show and tell
Replies: 1 comment
-
Very nice @Jimmi08 !! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I needed to use some icon packs independently on the front theme. Next, I wanted to add bootstrap5 default icons. This is the result. My time was limited, but still - it works.
How to use it
Just install and activate needed icons packs
Where are they loaded
in admin area in any glyphs picker (exactly like theme preferences) - this is managed by core
in user area (frontend) in e_header.php
Examples of using
When changing theme and your content uses icons from old theme. Example: Landing Zero theme uses Ionicons, if you want to use Bootstrap 5 theme, you need to change your used icons
When building theme - it is not easy to set icons in theme glyphs. Now just copy glyphs settings from glyphs.xml file for needed pack, copy needed folders and theme'glyphs work without this plugin.
Simplicity
If you need different icons, it is easy to create your own plugin with your own icons. Or you can add them to this plugin. For now, I just checked all theme.xml files for using glyphicons tags.
How it works?
glyphs.xml structure is the same as for theme.xml
After saving preferences core prefs for glyphs is changed. The trick is using full path to glyphs files (the reason why it works)
When you change theme, you need to save them again.
How to check it
When you click on Check:
Beta Was this translation helpful? Give feedback.
All reactions