Changing Collection to Products URL Structure

DavidJames21
New Member
2 0 1

Hi,

 

The internal linking on my website isn't working right. On example page can be seen here https://packagepets.com/products/rosewood-boredom-breaker-carrot-wood-roll

 

This page is indexed to Google. However when I try to access this product through the categories it displays the non indexed version with the collections name before it. This is bad seo practice as the website is not linking to the indexed page. Not a good thing when Google is crawling our website. So trying to fix the issue. Thought it would pretty straight forward, I'm not a developer by any means, but have a basic grasp of code. I just can't find the code anywhere. I have been in every file. I looked at a few other peoples similar posts and tried to follow them, but that code is nowhere to be found on my template. The template I'm using is Warehouse. Could anybody point me in the right direction?  

 

 

 

 

dmwwebartisan
Shopify Partner
5805 1330 1703

@DavidJames21 

please check  this link : https://thisisnovos.com/blog/how-to-change-urls-in-shopify/

Thanks!

If helpful then please Like and Accept Solution.
Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Advanced Shopify Page Builder to customize your pages - check here PageFly App
DavidJames21
New Member
2 0 1

Thanks for sending the link. This is the guide I followed, but can't find this code anywhere in the backend. I've searched every file. I even used the inspect feature on my browser to view the source code and get div names. I could only find the div in 1 file. However there was no anchor information in the file. Really frustrating. 

 

 

0 Likes
KieranR
Shopify Partner
227 20 63

Every theme will be different, so the example given won't necessarily match. Also it shouldn't really the <div> tags that need editing. 

All you really need to do is remove "| within: collection" from the right places. Inspect element and view-source won't find this because they only see the output frontend HTML/CSS what you're looking for happens in the template before the HTML gets generated.

To bulk search the theme templates you could try use this Chrome extension: https://chrome.google.com/webstore/detail/shopify-theme-search-by-b/epbnmkionkpliaiogpemfkclmcnbdfle...

Or download the entire theme and search directory with linux commands or Notepad++ or something. 

Make sure to backup or know how to "rollback" a file, and test things are working properly, as it's pretty easy to break stuff with a misplaced character with theme edits like this.

Full time Shopify SEO guy, based in NZ. Sometimes freelance outside the 9-5.
0 Likes