Jump to content


  • Posts

  • Joined

  • Last visited

lyssipos's Achievements

  1. Squarespace support also escalated this with their Engineering team, and let me know that "...you would not be able to achieve what you are wanting - the Google guidelines say that the hreflang HTML tag has to go in the <head> section. So they don't think adding the tags to the body of the post will achieve anything. "
  2. I'm adding one more post, for anyone that runs into this thread trying to achieve something similar. It turns out that the solution of adding hreflang tags to the body isn't respected by Google search, so there's no point. Testing with the w3 validator https://validator.w3.org returns errors "Error: A link element must not appear as a descendant of a body element unless the link element has an itemprop attribute or has a rel attribute whose value contains dns-prefetch, modulepreload, pingback, preconnect, prefetch, preload, prerender, or stylesheet."
  3. Following up: I tried a variety of approaches, using Google's recommended hreflang flag testing tool for validation https://technicalseo.com/tools/hreflang/. @tuanphan's suggested method above is the only one that worked, which is to add hreflang tags on the blog post itself as a Code block.
  4. @LightPress I'm in the same boat with my multilingual site. I need to add hreflang tags per Google's guide. I'm wondering whether it's possible in the Squarespace UI under Blog Settings > Advanced > Page Header Code Injection. In the subtitle description for 'Per Blog Item Code Injection' Squarespace says "To access the permalink, use {permalink}. To access the post's title, use {title}." @tuanphan Is there a way using above to add tags in the 'Page Header Code Injection' for Blog Settings that will then apply the correct html to each blog post's <head> section, satisfying Google's requirements? I have no idea if this is even correct, but something like <link rel="alternate" href="https://www.example.com/en/blog/{title}" hreflang="cs" />
  • 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.