Font Awesome

  • gerdwillemen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #2052 by gerdwillemen
Font Awesome was created by gerdwillemen
Hello,

Is it possible to use FontAwsome icons as tags? On your demo site you use "Hot" and "Spicy", but can u use also an icon? How do you have to do this ?

Thanks for the reply ....

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

More
9 years 11 months ago #2053 by andrea_4g
Replied by andrea_4g on topic Font Awesome
There's no native support for (the awesome) FontAwesome.

The standard way to insert FA icons is to add to the html a '<i class="fa fa-something-icon></i>' html tag, yet, with some CSS editing, FA icons can be added to any element on the page.

Because each Custom Properties has its own CSS class, each one can be styled differently.

The actual implementation depends by the template of the website.

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

  • gerdwillemen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #2059 by gerdwillemen
Replied by gerdwillemen on topic Font Awesome
Andrea,

Thank you for the answer, but i do not understand. I know how to insert FA icons in let's say text on my site, or anywhere I can insert HTML code, but I dont' know how to insert html in the admin panel of CP. See file in attachment.

Could you pleas help me ?
Attachments:

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

More
9 years 11 months ago - 9 years 11 months ago #2065 by andrea_4g
Replied by andrea_4g on topic Font Awesome
You have to edit manually your template CSS.

Example:


If you want to add a 'star' icon before the 'intermediate' tag, you need to add the following CSS rule:
Code:
cp-tag-22 a:before{ content: "\f005"; font: 14px/1 FontAwesome; }

Note: you find the character codes in fontawesome.css file, or here:
fortawesome.github.io/Font-Awesome/cheatsheet/
Attachments:
Last edit: 9 years 11 months ago by andrea_4g.

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

  • gerdwillemen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #2130 by gerdwillemen
Replied by gerdwillemen on topic Font Awesome
Hi Andrea,

I finally had the time to try out your suggestion, but I did not get it to work.
See attachment.

could you please give some advise. Thank you


Attachments:

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

More
9 years 10 months ago #2131 by andrea_4g
Replied by andrea_4g on topic Font Awesome
You also have to make sure that FontAwesome CSS and actual font files are properly loaded by your template:
fortawesome.github.io/Font-Awesome/get-started/

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

Time to create page: 0.197 seconds