Jump to content

CSS for “Related Post” advanced

Go to solution Solved by LukeDesign,

Recommended Posts

Posted

I am building a blog post template that I will use for all my posts. I want to add a “Related Posts” summary block on the bottom using categories. I know how to add a summary block and select categories, but since I am building a template, I would like CSS that can pull up the categories from the current page automatically to display those related posts. 

Here is the template so far:

https://www.lucasano.com/blog-content/template-blog-post

Thanks!

  • Replies 3
  • Views 987
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)
Quote

I would like CSS that can pull up the categories from the current page automatically to display those related posts.

CSS is for styling how things look. It can't do things like lookup information and create new data structures. For that you would need JavaScript, the business plan or above, and custom JavaScript. Assuming it could be done at all. I know of no code that currently does this.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

  • Solution
Posted
15 hours ago, creedon said:

CSS is for styling how things look. It can't do things like lookup information and create new data structures. For that you would need JavaScript, the business plan or above, and custom JavaScript. Assuming it could be done at all. I know of know code that currently does this.

Thank you. I was able to find some Javascript that achieved what I was looking for. 

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.