Jump to content

How to wrap blog tags in mobile

Recommended Posts

I can't figure out how to force the blog tag to wrap to the next line and also add spacing between the rows. This is the code I'm using - any suggestions?

//Moving the tags
.blog-item-content-wrapper {
    display: flex;
  flex-direction: column;
}
//Styling the tags
.blog-item-wrapper .blog-meta-item--tags {
  margin-bottom: 40px;
  margin-top: 2;
  order: -1;
  text-align: center;
  flex-wrap: wrap;
  flex: 100%;
  gap: 10px;
}
//wrap tags on mobile//
@media screen and (max-width: 640px) {
.blog-meta-item .blog-meta-item--tags {
   flex-wrap: wrap !important;
    padding-top: 55px;
  }
}

Screenshot 2023-05-23 at 2.49.20 PM.png

Link to comment
  • Replies 1
  • Views 257
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Can you see if adding this helps:

.blog-item-tag-wrapper a {
  white-space: nowrap;
}
.blog-item-wrapper .blog-meta-item span {
    line-height: 2em;
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.