Jump to content

font awesome icons

Recommended Posts

Site URL: https://f22-photography.co.uk

Hi

Im trying to get font awesome icons in my navigation, (for example a home icon next to home test)

i have signed up and got the piece of code that goes in the header, i have then tried various ways and watched various youtube videos on how to do it but still no icons appear in my navigation or on any page.

Im using the wells template

can anyone help me with what im doing wrong please

 

marcus

Link to comment
  • Replies 3
  • Created
  • Last Reply

Add to Home > Settings > Advanced > Code Injection > Header

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  /* bio */
  div#topNav [href="/bio"]:before {
    content: "\f232";
    font-family: FontAwesome;
    font-weight: bold;
}
</style>

Do similar for other items. Icons list: https://fontawesome.com/v4.7.0/

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/18/2020 at 3:49 PM, tuanphan said:

Add to Home > Settings > Advanced > Code Injection > Header


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  /* bio */
  div#topNav [href="/bio"]:before {
    content: "\f232";
    font-family: FontAwesome;
    font-weight: bold;
}
</style>

Do similar for other items. Icons list: https://fontawesome.com/v4.7.0/

Hi that only seems to work with an icon next to bio, i've tried changing the word bio to other words in my nav but i still get no icons ???

 

Also its not letting me use the newer version of font awesome ??

Link to comment
14 hours ago, zedstar said:

Hi that only seems to work with an icon next to bio, i've tried changing the word bio to other words in my nav but i still get no icons ???

 

Also its not letting me use the newer version of font awesome ??

Did you use correct page url?

Above code, I declared FontAwesome 4. If you want to use FontAwesome latest version (5), you need to edit FA5 in first url.

and use different code for 

div#topNav [href="/bio"]:before 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.