Font Awesome Version 4.2.0 for CloudHost

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
Sun Sep 07, 2014 3:00 pm
Reply with quote
Report this post
Hi GavicPro Team,

I am wondering if it's possible to use latest version on the Font Awesome icons with CloudHost template.
If yes, can you provide easiest way to update them.

Thanks,
Krystian
User avatar
Junior Boarder

GK User
Sun Sep 07, 2014 4:33 pm
Reply with quote
Report this post
Hello,

Yes it is possible - you have to update the font files under the fonts/font-awesome directory and update the css/font-awesome.css file (please remember to put there a proper URLs for the font files at the beginning of the CSS code). We will upgrade all our templates with this new version of the font awesome till end of September.
User avatar
Administrator

GK User
Tue Sep 09, 2014 4:47 pm
Reply with quote
Report this post
Hi Dziudek,

I have tried to add code to font-awesome.css and update links.
But apparently it is more complicated as some of icons are with fa and some with icon.
I couldn't just simply replace .css as the menu disappear as well.

Let me know guys when you upgrade to 4.2 so i just use your optimized code.

Best,
Krystian
User avatar
Junior Boarder

GK User
Wed Sep 10, 2014 2:06 pm
Reply with quote
Report this post
Now I see a reason of your problem - Cloudhost uses Font Awesome 3.x and won't be upgraded to Font Awesome 4.* as it will cause backward-compatibility problems - the class names are totally different. The only solution is adding Font Awesome 4.* as an additional iconset.
User avatar
Administrator

GK User
Thu Sep 11, 2014 8:23 am
Reply with quote
Report this post
Thanks for reply.
Can you let me know how can I do this?
User avatar
Junior Boarder

GK User
Thu Sep 11, 2014 10:50 am
Reply with quote
Report this post
The easiest way is uploading the css as font-awesome-4.2.css to css directory and puts the font files as files inside fonts/font-awesome-4.2/ directory. Please remember to change the paths inside the font-awesome-4.2.css from ../fonts/ to ../fonts/font-awesome-4.2/. The last step is loading the CSS - you can do it by replacing inside the layouts/blocks/head.php file the following fragment:

Code: Select all
$this->API->addCSS($this->API->URLtemplate() . '/css/font-awesome.css');

to:
Code: Select all
$this->API->addCSS($this->API->URLtemplate() . '/css/font-awesome.css');
$this->API->addCSS($this->API->URLtemplate() . '/css/font-awesome-4.2.css');
User avatar
Administrator

GK User
Fri Sep 12, 2014 2:09 pm
Reply with quote
Report this post
Great :)
Thank you very much Dziudek

Have a great weekend
User avatar
Junior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.