#1 TikTok Ads Spy Tool

A Better Way to Make TikTok Ads Dropshipping & TikTok For Business

  • Find TikTok winning products & TikTok dropshipping ads.
  • Analyze TikTok advertisers
  • Get the Latest TikTok Shop Data.
Try It Free

Shopify Tutorial: Removing /collections/ name from product URLs

Published on: December 25 2022 by ethercycle

Are you tired of having the collection name in your product URLs on Shopify? It can make your URLs look longer and less clean. Luckily, it's easy to remove the collection name from your product URLs with just a few simple steps. In this tutorial, we will guide you through the process of removing collection names from product URLs on Shopify.

Step 1: Accessing the theme editor

1. Log in to your Shopify account and go to the Online Store section.

2. Click on the Themes tab and then click on the Actions button next to the theme you want to edit.

3. From the drop-down menu, select Edit code.

Step 2: Editing the product template

1. In the theme editor, click on the Sections folder.

2. Find the product-template.liquid file and click on it to open it.

3. Scroll down until you find the code that generates the URL for the product page.

4. Look for the following code: {{ product.url | within: collection }}.

5. Remove the within: collection part of the code.

6. Save the changes to the product-template.liquid file.

Step 3: Testing the changes

1. Go to one of your product pages and check the URL.

2. The collection name should no longer be in the URL.

Removing the collection name from your product URLs on Shopify is a quick and easy process. By following the steps outlined in this tutorial, you can make your URLs look cleaner and more professional. Happy selling!

Shopify Tutorial: Removing /collections/ name from product URLs

How to Remove Slash Collections URL Slug in Shopify Product Pages

Have you ever experienced the annoying slash collections URL slug in your Shopify product pages when visiting them from a collection page? In this article, I will show you how to get rid of it easily.

Steps:

1. Check the Moz guide for optimizing Shopify SEO.

2. Note that Shopify creates duplicate content in product pages by default.

3. Understand that Shopify liquid code adds the slash collections URL in the product pages.

4. Realize that the preferred method is to only send users to the slash products URL.

5. Search for the within collection phrase in your theme.

6. Remove the phrase from the code and save it.

7. Check the product page URL to confirm the fix.

8. Use the theme editor's versioning feature to undo changes if necessary.

Removing the slash collections URL slug in Shopify product pages is a simple fix that can improve your website's SEO. By following these steps, you can avoid duplicate content and provide a better user experience for your customers.

Start your free trial today!

Try Pipiads free for trial, no credit card required. By entering your email,
You will be taken to the signup page.