Jump to content

Font Awesome icons in Squarespace buttons

Recommended Posts

Hi,

I've been successfully pasting tags for Font Awesome icons into button text fields up until today when the icons suddenly disappeared. When I try to replace them, they no longer work. If I enter something like this:

    Learn more about us ︁<i class="fa-regular fa-circle-arrow-right"></i>

I get this:

    Learn more about us ︁&lt;i class="fa-regular fa-circle-arrow-right"&gt;&lt;/i&gt;

And no icon shows up.

Squarespace support hasn't provided an answer. Has anyone else encountered this problem? 

Thanks,

john

 

Link to comment

If I had to guess I'd say SS didn't intend for HTML to go into the button block Text field and have closed that loophole.

If you want to restore the effect you'd need to use Javascript to insert the HTML.

Folks. In general unless SS indicates that HTML can be input somewhere you may not want to do this. At some point SS will most likely fix the loophole.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Thank you, creedon. Thank you, tuanphan. 

I'm using psuedo to apply icons in other parts of my design. But having the ability to drop different icons into specific buttons was very helpful. I know I can use CSS and unicode to target individual buttons, but doing so for a range of buttons across multiple pages would be a pain to create and manage. 

Squarespace support would neither confirm nor deny that they closed the loophole. They only told me they can't help with custom code. But talking to support at Font Awesome, they claimed to be aware of other customers using the same method to insert icons into buttons on Squarespace. It seems strange that Squarespace would intentionally remove functionality that supports such a hugely popular and easy-to-use icon service. (Unless, maybe, Squarespace was planning to acquire or partner with some alternate icon provider.)

Link to comment
  • 2 months later...

I just ran up against this and had a very frustrating chat with "support" regarding the issue. This has worked since the beginning of time. I have multiple clients using icons on buttons to indicate downloads, external links, etc. It does seem strange to remove the easy-to-use and popular functionality. It might be that engineering doesn't even know they inadvertently did this -- the support guy said they are not allowed to report it to the engineering team.

Have SEO questions? Chances are we've written about it! Try a quick Google search to find our advice. Or for personalized support, see our consulting and training sessions.  Official Squarespace Experts since 2014 

Link to comment
3 hours ago, ChristineDarby said:

It does seem strange to remove the easy-to-use and popular functionality.

I don't speak for SS but here is my guess. Unless the documentation said it was a feature to enter HTML in a field then it was a bug as far as SS is concerned. So they fixed the bug and removed what wasn't a feature but a loophole that people took advantage of.

If you want the same end behaviour then you'll need to use one of the methods mentioned above.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
1 hour ago, ChristineDarby said:

I have multiple clients using icons on buttons to indicate downloads, external links, etc. It might be that engineering doesn't even know they inadvertently did this.

I can understand why this change is frustrating. Nothing upsets me (and clients) more than changes that are made without notice. It's not cool when sites break.

Having said that, adding HTML to text labels is not considered good practice. It was, as @creedon described, a loophole. A loophole that many people enjoyed, but a loophole nonetheless. Squarespace are gradually removing loopholes like this by performing 'input validation' to remove HTML. This is good coding practice as it ensures that only properly formatted text is entered into the system. It reduces errors and helps to prevent attacks - something that is of ever increasing importance. The Button Block Editor was recently updated so it's natural that they took the opportunity to add validation to this too. 

There are better ways to add icons, for example, using CSS pseudo selectors and/or JavaScript. The solution will depend on the specifics of the site, so if you need help please post some details.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Thanks guys. If that's the case, it sure would be great if support would just say so. The change isn't what I find frustrating, but the usual canned responses from SS support. 

Have SEO questions? Chances are we've written about it! Try a quick Google search to find our advice. Or for personalized support, see our consulting and training sessions.  Official Squarespace Experts since 2014 

Link to comment

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.