help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[info] - Using Icomoon

[info] - Using Icomoon

10 years 11 months ago - 10 years 11 months ago
#12071
just wanted to share some info..

Joomla 3 is using icoMoon to display icons and it the back it's not a big problem to use the tags and get the needed images. But if the front is missing the link in the code then it won't work and it will display other code then expected.

Had some problems with the sort icon but finally noticed how to deal with it.



An usefull link

we can make a reference in the view to an existing css with the needed fonts. like:
Code:
JHtml::_('stylesheet', 'jui/icomoon.css', array(), true);
but that can mess up other icons in the front, so better to add it in the template.



in the css it needs code like
Code:
@font-face { font-family: 'IcoMoon'; src: url('../fonts/IcoMoon.eot'); src: url('../fonts/IcoMoon.eot?#iefix') format('embedded-opentype'), url('../fonts/IcoMoon.svg#IcoMoon') format('svg'), url('../fonts/IcoMoon.woff') format('woff'), url('../fonts/IcoMoon.ttf') format('truetype'); font-weight: normal; font-style: normal; } .icon-arrow-down-3:before { content: "<"; } [class^="icon-"]:before, [class*=" icon-"]:before { font-family: 'IcoMoon'; font-style: normal; }

as you see it is referring to a font type and the font needs to be in a folder. we can even point to already existing fonts. like the ones in the jui folder.



in the php page it can be called like
Code:
<i class="icon-arrow-down-3"></i>
Last edit: 10 years 11 months ago by Bluefox.

Please Log in or Create an account to join the conversation.

Time to create page: 0.683 seconds