Jump to content

Auto change navigation button to newest blog post

Recommended Posts

I would like to know if there is a custom code way to make the button in my navigation bar to always link to the latest blog post?

 

https://www.effinghamvillagewine.com

 

The link above shows what I'm talking about. What I do now is just make the button for Wine of the Week into a link and manually change it every week. What I would like the button to do is to pick the latest blog post (we post the "Wine of the Week" via blog collection) and make the button link to the post automatically. We schedule our posts in advance and would like to change the button automatically as well. I don't want the button to go to the blog main page, just the latest blog post.

Link to comment
  • 9 months later...
  • Replies 6
  • Views 754
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 3 weeks later...
  • 5 months later...
  • 1 year later...

This can be done with a summary block and featured setting in the blog. I just tested it and it works a treat without having to add any special code. No need to go back and turn off featured on past posts either if you set it to one post per summary block and one column. 

Sayre

Design Site: https://www.stregaconsulting.com

Author Coordinates: https://bio.site/sayreambrosio

Italian Journey: https://bio.site/ambrosiosjrnyhm

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.