Jump to content

Show different meta content on each blog page

Go to solution Solved by Lesum,

Recommended Posts

I'm having trouble with the meta content shown on blog collections on my website. I'm using blog pages for several different sections, and I need some of them to show the date, some to show categories, and some to show nothing. For example, I need the Job Board page to show the date, but I don't want the Directory to display it.

When I change the meta content of one blog page, the meta content for all blog pages changes. Is there a way to fix this?

URL: opossum-cornet-hdyb.squarespace.com
PW: fig

Link to comment
  • Solution

@mindfig Hi! To hide or show meta content on a blog collection page, you can utilize the collection ID linked with that specific page. For example, you can use this code to hide the date on the Directory page. Add this code within Website > Pages > Website Tools > Custom CSS

#collection-6662515470ba192b82f3de85 {
	span.blog-meta-secondary {
		display: none !important;
	}
	span.blog-meta-delimiter.blog-category-delimiter {
		display: none !important;
	}
}

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? 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.