CMS Development

kyKaq
Member

implement font-awesome pro icon

SOLVE

Hello,

I have font-awesome pro. Then I wanted to ask about the ways to use the font awesome pro in the hubspot. Is it same with the way to use the icon (add icon field) by edit the setting or anythings?

 

Or is it by coding?

Thanks.

0 Upvotes
2 Accepted solutions
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

implement font-awesome pro icon

SOLVE

@kyKaq there are a lot of different ways you can use FontAwesome Pro. I think the most popular way is to add the provided "Kit Code" to the global site head in your settings. Once you do that, you can copy and past any icon code from fontawesome.com to your website and the kit code will handle the rest.

 

Personally, I like to use the SVG code directly in my modules/templates for better performance. But I will admit, it can be a bit of a pain to do things that way.

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

implement font-awesome pro icon

SOLVE

@yshinzato no, you'd have to use your own custom field in a custom module and copy and paste the code into it for pro.

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

0 Upvotes
5 Replies 5
yshinzato
Contributor

implement font-awesome pro icon

SOLVE

Hi,
@Anton @stefen is there a way to get the FontAwesome Pro library to appear in the Icon module? 

Screenshot 2024-02-29 at 4.03.10 PM.png

0 Upvotes
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

implement font-awesome pro icon

SOLVE

@yshinzato no, you'd have to use your own custom field in a custom module and copy and paste the code into it for pro.

Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes
yshinzato
Contributor

implement font-awesome pro icon

SOLVE

Thanks

0 Upvotes
Anton
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

implement font-awesome pro icon

SOLVE

Hi @kyKaq

it's quite simple. 

You can:

- place the FA pro link in the HubSpot settings ( settings -> website -> pages -> header options)

- upload all needed icons(SVG or PNG) to the file-manager and create a image-function in your module

- use a simple text-field(called e.g Font Awesome Icon) for the name like(recommend this one) after linking the FA CSS file somewhere

 

<i class="fad fa-{{module.font_awesome_icon}} fa-lg"></i>

 

- upload the FA CSS to your file-manager and link it directly in the module - this will load the FA CSS only if the module requires it and only once per site not per module

 

 

best, 

Anton

Anton Bujanowski Signature
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

implement font-awesome pro icon

SOLVE

@kyKaq there are a lot of different ways you can use FontAwesome Pro. I think the most popular way is to add the provided "Kit Code" to the global site head in your settings. Once you do that, you can copy and past any icon code from fontawesome.com to your website and the kit code will handle the rest.

 

Personally, I like to use the SVG code directly in my modules/templates for better performance. But I will admit, it can be a bit of a pain to do things that way.

Stefen Phelps, Community Champion, Kelp Web Developer