Jump to content

How to install ionicons to Squarespace?

Recommended Posts

Site URL: https://ionicons.com/

Hi everyone,

I found out that https://ionicons.com/ is similar to Font Awesome, in which you can use designed icons on your website. However, I couldn't figure out how to use their icons in Squarespace. Does anyone know how to do it? I need to install it to the Squarespace 7.0 Brine template.

 

I installed this text from their website to do Code Injection Header 

<script src="https://unpkg.com/ionicons@5.1.2/dist/ionicons.js"></script>

Then add this code to the Markdown , but nothing happened.

<ion-icon name="heart"></ion-icon>

Am I doing anything wrong? 

 

Thank you.

Link to comment
  • Replies 6
  • Views 856
  • Created
  • Last Reply

@tuanphan You are right, I added the code to Code Block and it did the job, thank you. Do you know why the code didn't work for Markdown block? I thought Code Block and Markdown Block have similar function, do they?

 

My page is gallopapartments.com ; password: hello

<ion-icon name="heart"></ion-icon>

 

Link to comment
1 minute ago, gallop said:

@tuanphan You are right, I added the code to Code Block and it did the job, thank you. Do you know why the code didn't work for Markdown block? I thought Code Block and Markdown Block have similar function, do they?

 

My page is gallopapartments.com ; password: hello


<ion-icon name="heart"></ion-icon>

 

With Code Block, browser will show original code <icon...>

With markdown block, browser will wrap p tag around your code <p><ion...</p>

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.