Jump to content

How to add icons in excerpts?

Recommended Posts

2 hours ago, tuanphan said:


I see icons here? DId you solve problem?

Excerpts meaning the thumbnail view, generally in summary blocks, of blog posts.

The icons you may be referring to seeing are actually inside my the <body> of my blog posts. 

I want the icons to be inserted within this view below in the excerpts.



This is where I enter information into the excerpt. How do I get icons in there?

Thanks for looking into it @tuanphan!


Link to comment

Here's a CSS only way.

you need some way to target them, so what I'd do is add your three things in a little bulleted list in your excerpt. then you can use css to target each one, using nth-child(1) to select the first (bedrooms), nth-child(2) to select the second (bathrooms) and nth-child(3) to select the parking spaces. the bulleted list option will come up in the formatting bar as you edit the excerpt


you could then add the following rules to your custom css section in the design menu. This would mean that this was applied to all blog excerpt lists though so you might want to inject it into the specific page if it's only for one place.

.blog-excerpt ul {
  margin:1em 0;
.blog-excerpt ul li p:before {
    content:'' !important;
.blog-excerpt ul li {
.blog-excerpt ul li:before {
.blog-excerpt ul li:nth-child(1):before {
.blog-excerpt ul li:nth-child(2):before {
.blog-excerpt ul li:nth-child(3):before {
  • the width and height of the image is set in the 4th rule (currently 20 x 20). you must set this to the correct aspect ratio and size of your icons.
  • change the image urls of the last three rules accordingly. You'll need to upload the icon files to your site. you can do that in the custom css section at the bottom (see here for help on that https://support.squarespace.com/hc/en-us/articles/206545567).



Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

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.