Using font awesome in module headers

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Nov 05, 2014 8:30 pm
Reply with quote
Report this post
I noticed that the [icon] pulls in the class gk-icon to the html. Johns icons work with -flame, -heart, etc.

In the template settings I set all of my header tags to pull in squirrel fonts and link to font-awesome. I am not sure which tag to use in my title to create the fa class that I want. Should johns Icons still work even if the settings have changed to font awesome?

I am trying to use http://fontawesome.io/icon/cogs/
User avatar
Fresh Boarder

GK User
Thu Nov 06, 2014 7:19 am
Reply with quote
Report this post
Could you please post an url to your site where you have put some FA icons and they do not work??
User avatar
Moderator

GK User
Thu Nov 06, 2014 2:19 pm
Reply with quote
Report this post
http://www.scottiev.com/JR

I would like to different icon in my animated section title headers.
User avatar
Fresh Boarder

GK User
Fri Nov 07, 2014 6:57 pm
Reply with quote
Report this post
It's not that straight as it looks.
If you use [icon-something] in module title/heared it will change this "shortcode" into html icon:
Code: Select all
<i class="gk-icon-something"></i>

Now if you will look into:
Code: Select all
templates/gk_john_s/css/gk.stuff.css

file you will find out that there are declared font awesome' like declarations for few icons that are used with john. If you would like to use other fonts (font awesome or any other font-face custom font) you would need to create same declarations for your icons.
User avatar
Moderator

GK User
Mon Nov 10, 2014 2:24 am
Reply with quote
Report this post
That worked, thank you. My new icon looks slanted though. I thinks its from the <i></i>. Is the font is italicized?
User avatar
Fresh Boarder

GK User
Tue Nov 11, 2014 9:00 am
Reply with quote
Report this post
Should not be.
Could you please post an url to your site - to a particular place where I can see this issue?
User avatar
Moderator

GK User
Wed Nov 12, 2014 3:58 am
Reply with quote
Report this post
http://www.scottiev.com/JR the first header under the introduction and the blog header.
User avatar
Fresh Boarder

GK User
Wed Nov 12, 2014 9:54 am
Reply with quote
Report this post
Hi,

you have set the font-style of .gk-icon-gears:after to none. This is not valid. Could you try to add this:

Code: Select all
.gk-icon-gears:after {
font-style: initial!important;
}


Best,
Dirk
User avatar
Senior Boarder

GK User
Wed Nov 12, 2014 7:18 pm
Reply with quote
Report this post
@Vosburgh - could you please create a screenshot and "simulate" how it should looks like vs how it looks like right now?
User avatar
Moderator


cron