Skip to Content Skip to Menu

why are the templates not really templates?

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 10 months ago #255046 by carin
I just figured out that I cannot override
Code:
<span class="fa fa-circle-o"></span>

for the user status, not even in the template. Why does the core provide presentational content? That is the duty of the webdesigner hence the template files.

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 10 months ago - 9 years 10 months ago #255096 by krileon
Replied by krileon on topic why are the templates not really templates?
It's a fontawesome icon. The fontawesome CSS file is included with CBs template (you can see it in your default template folder as fontawesome.css). You can supply your own fontawesome, modify the existing fontawesome, or add CSS to replace the icon with whatever you want. Example as follows to replace the online status icons.

Code:
.cb_template .cb_online > span:before { content: "\f06e"; } .cb_template .cb_offline > span:before { content: "\f070"; }

You can use any fontawesome icon content you'd like. You can find them at the below link or you can check fontawesome.css for their content codes. You can also set the content to empty with "" and display the icon however you like (e.g. change it to block, set a height/width, and add a background image for an image icon).

fontawesome.io/icons/

The online/offline display is a bit different in the canvas though as it uses custom CSS in the template.css to turn it into green/red circles with a border.

Additionally you can shut off our fontawesome entirely in CB > Configuration > Integrations if you choose to provide fontawesome externally.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 9 years 10 months ago by krileon.
The following user(s) said Thank You: carin

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

Moderators: beatnantkrileon
Powered by Kunena Forum