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?
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.
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.