Jump to content

Summary block content order: Categories above excerpt, tags below excerpt

Recommended Posts

So I'm trying to change the order of content in my summary block to:

1. Title
2. Primary Metadata (Categories)
3. Blog Excerpt
4. Secondary Metadata (Tags)

The css I've created below successfully does this on all blocks except the Metadata, because they are in a lower class. Is there a way to take Primary and Secondary Metadata out of their shared class, so they can be treated as independent elements like the summary title and excerpt?

.summary-content.sqs-gallery-meta-container , .summary-content.sqs-gallery-meta-container .summary-metadata-container.summary-metadata-container--below-title
{ display: flex;
  flex-wrap: wrap;}

.summary-title{
  order:1!important;}

.summary-metadata.summary-metadata--primary{
  order:2!important;}

.summary-excerpt{order:3!important;}

.summary-metadata.summary-metadata--secondary{order:4!important;}

 

Website: https://www.beehyve.health/resources
Password: abc

Link to comment
14 hours ago, melaniejaane said:

So I'm trying to change the order of content in my summary block to:

1. Title
2. Primary Metadata (Categories)
3. Blog Excerpt
4. Secondary Metadata (Tags)

The css I've created below successfully does this on all blocks except the Metadata, because they are in a lower class. Is there a way to take Primary and Secondary Metadata out of their shared class, so they can be treated as independent elements like the summary title and excerpt?

.summary-content.sqs-gallery-meta-container , .summary-content.sqs-gallery-meta-container .summary-metadata-container.summary-metadata-container--below-title
{ display: flex;
  flex-wrap: wrap;}

.summary-title{
  order:1!important;}

.summary-metadata.summary-metadata--primary{
  order:2!important;}

.summary-excerpt{order:3!important;}

.summary-metadata.summary-metadata--secondary{order:4!important;}

 

Website: https://www.beehyve.health/resources
Password: abc

This is the standard layout of Dom on summary block: 

image.thumb.png.2c9ba12a15cc5e341306711bf0fffd78.png

The 'summary-metadata--primary' and 'summary-metadata--secondary' are not on the same level with the title and excerpt.

If you require this order, we need to implement js code to change some Dom element on summary block and set the right Css style for it.

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.