Collection links breaking due to custom code syntax

Hello,

My links are broke for the ‘Work’ collection I made. Every item is leading to a 404. There must be something i’ve missed. Tried everything I could think off (clearing cache etc.)

They work in preview but not when published.

Can anyone take a look and help please?

Share link below.

Rob


Here is my public share link: LINK
(how to access public share link)

Hi @roblewi5, it looks like there is some custom css used on the Work template page, but the code is malformatted and is breaking the page. I would correct the syntax for the style tag, then republish, and it should work.

I hope this helps.

P.s. if something works in Preview but not on published, it usually is custom code related, as custom code is only rendered on the published site.

Hi @cyberdave,

That’ll be it. The closing style tag is a bit butchered! Good spot, thank you and thanks for the tip i’ll bear in mind for future.

Rob