Jump to content

[Share] Add FontAwesome Arrow icon before Text

Recommended Posts

You can follow these to add FontAwesome arrow (or any icons) before Text in Text Block.

If you can't make it work, you can send link to page where you use text, I will check it again.

#1. First, you need to find the ID of the Text Block.

In my example, we will have: #block-yui_3_17_2_1_1723019960346_3692

image.png.5dcf2dfec1d45e0f25989c5fccaf9b9e.png

#2. Use this code to Code Injection Header (If your plan is Personal Plan, you can add it via Code Block in the Site Footer)

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />

image.png.968423cf548ca2cfb007e658916cb879.png

#3. Use this code to Custom CSS box

#block-yui_3_17_2_1_1723019960346_3692 p:before {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: bold;
  color: #f86443;
  font-size: 30px;
  margin-right: 5px;
}

image.png.bbd8cc86e2452a02b37c7230330b35b5.png

#4. Result

 image.png.51ea914577f5fa89c0b735aabd01b551.png

#5. Note

This code will add icon before Paragraph.

If you need to add it before Heading, for example Heading 3, you need to change

p

to

h3

image.png.8f62129f1ecb7aa8660875acd940659e.png

something like this

#block-yui_3_17_2_1_1723019960346_3692 h3:before {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: bold;
  color: #f86443;
  font-size: 30px;
  margin-right: 5px;
}

 

 

Edited by tuanphan
edit title

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
  • tuanphan changed the title to [Share] Add FontAwesome Arrow icon before Text
  • Replies 0
  • Views 267
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.