Jump to content

[Share] Phone icon before Button Block

Recommended Posts

To add a phone icon before Button Block, you can follow these quick steps.

If you can't make it work, you can share link to page where you use Button, I will check & give you exact code.

#1. Add this code to Code Injection > Footer (If the site doesn't support Code Injection, you can add it to Code Block in 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.ee42d3df5f59abea26bab034ac2ea853.png

#2. Install Squarespace ID Finder (free tool)

https://chromewebstore.google.com/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

and find ID of Button Block

In my example, we will have

#block-yui_3_17_2_1_1718008089698_24121

image.png.671d28b447cb911f3691a3c9dd937c13.png

#3. Use this code to Custom CSS box

div#block-yui_3_17_2_1_1718008089698_24121 a:before {
    content: "\f2a0";
    font-family: "Font Awesome 6 Free";
    font-weight: bold;
    font-size: 20px;
    margin-right: 10px;
    display: inline-block;
    transform: rotate(-35deg);
}

image.png.bf14df44b564d1bea7f56547b0bb9aed.png

#4. Result

image.png.69ac1b8f0bb859e4c9950f1547c0590a.png

#5. Note

I use Phone icon from FontAwesome: https://fontawesome.com/icons/phone-volume?f=classic&s=solid

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
  • Replies 0
  • Views 102
  • 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.