FAQ Database Discussion Community

## How can I replace the icons in a dijit Tree with font-awesome icons?

javascript,html,css,dojo,font-awesome
I'm trying to switch out the icons in a dijit tree (specifically those that correspond with dijitFolderClosed, dijitFolderOpened - classes that apply to parent nodes in the tree) with font-awesome 'icons'. Switching out what icons are displayed is easy when the icons are actually image files - I can just...

## Change icon using jquery on click

javascript,jquery,html,css,font-awesome
Very new to jQuery, i'm trying to change the font icon class on click and display a drop down. currently it changes the icon and drops down, but when i want it to toggle back the text toggles but the icon stays the same. here is my code: $(".answer1").hide();$(".question1").on("click",...

xpages,font-awesome
I am using font-awesome in xpages.I have a theme named securePolling in which I am giving links to the resources code inside securePolling is <theme extends="webstandard" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/ schema/stylekit.xsd" > <resource rendered="#{javascript:context.getProperty('xsp.resources.aggregate').equals('true')}"> <content-type>text/css</content-type>...

## .NET equivalent of .htaccess file

asp.net,.htaccess,iis,cors,font-awesome
I am trying to enable CORS in .NET to get round Firefox policy on cross-domain resources (fontawesome in my case). I've found this solution for Apache that I want to translate to .NET. I've tried to follow these guidelines for the translation, but I got stuck. This is the relevant...

## How to change the class of an tag on click? jQuery?

jquery,font-awesome
This is my <i> class: <i class="button fa fa-heart-o"></i> Note that I am using Font Awesome How do I make it so that when the user clicks on it, the class "fa-heart-o" gets replaced with "fa-heart". I am aware of the toggleClass function in jQuery, along with the addClass function...

## Font Awesome CSS overriding my CSS

html,css,css3,fonts,font-awesome
I am working on a page - click here for link. The icons are all supposed to have the font size of .side-icon: .side-icon{ font-size:28px; } BUT a style in font-awesome.css is overriding this, no matter where I include the library in the layout. At the moment I have included...

## Disable Font-awesome button in JQuery

jquery,font-awesome

## Social-buttons hover effect changing icon color

I am using Social Buttons for Bootstrap (http://lipis.github.io/bootstrap-social/) to add icon links to facebook and twitter, but I'm having trouble getting them to behave like the examples on the above site. The buttons show up fine, but when you hover over them, the icon changes to a darker color. In...

## android: show font icon as a sequence of number string

android,font-awesome
I want to put a Font-Awesome icon inside textview text. After I set the text, android shows me a string sequence instead of font-icon. My code is: String formatedSection = formatedSection + sections.get(i).getContent() +getResources().getString(R.string.icon_ref); I define icon_ref in string.xml as below: <string name="icon_ref">&#xf075;</string> I followed these instructions to add font-icon....

## font-awesome to be inserted in value=“”>

spring,button,input,font-awesome
im trying to insert some font-awesome inside here <form action="/someweb.html"> <input type="submit" class="btn btn-success" value="<spring:message text="View List"/>"> </form> but it seems that this code <i class="fa fa-list-ul fa-lg"></i> wont fit inside, and i tried to insert it inside in different position, i always get failed result. all i wanted is...

## How do I add an icon inside a text_field_tag

css,ruby-on-rails,font-awesome
I'm using Rails 4 and Font Awesome (sass). I would like to add an icon to the left side of the search function, just like on Stack Overflow. This is my code for the search function. index.html.erb <%= form_tag products_path, method: :get do %> <%= text_field_tag :query, params[:query], placeholder: "Search..."...

## Font Awesome Icon with characters on it

css,font-awesome
I would like to have font awesome with charaters on it , but it fails to do that.Please help to understand whats going on wrong. Output : Code Tried : <i class="fa fa-square fa-2x" style="color:red;"><span style="text-color:white;">S</span></i> <i class="fa fa-square fa-2x" style="color:yellow;"><span style="text-color:white;">XL</span></i> <i class="fa fa-square fa-2x" style="color:green;"><span style="text-color:white;">XXL</span></i> ...