Jump to content

Possible to add "canonical tag" to categories?

Recommended Posts

Hi,

Im using categories in my shop to separate different articles of clothing (tees, hoodies, caps, etc).

For example "https://www.duhvoli.com/shop/hoodies" is a category page for all my hoodies.

Google is ignoring these urls and suggests I  "Alternate pages with proper canonical tag"

(it choses the first product page under said category instead)

How can I add canonical tag to category page? 

If it's not possible, what would be best solution to fix this?

Thanks! 

Link to comment
  • 2 months later...
  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

Hey, so I was having the same issue for the blogs on my website (due to the categories and tags). The way I solved this was to add some javascript to inset the canonical  link in the header, you can copy the code from here: 
https://luckynightstudio.com/blog/how-to-fix-non-canonical-url-error-from-shop-categories-on-squarespace

hopefully this helps, but if you have any questions let me know.

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.