• Home
  • About
  • Insights Hub
    • New Posts
    • Technical SEO
    • General Discussion
    • View All Forums
  • Blog
  • Contact
    • Hub
      New posts Search forums
    • What's new
      New posts New profile posts Latest activity
    • Members
      Current visitors New profile posts Search profile posts
    Log in Register
    What's new Search

    Search

    By:
    Advanced search…
    • New posts
    • Search forums
    Menu
    Log in

    Register

    Install the app
    • Home
      • Hub
      • Technical SEO
      You are using an out of date browser. It may not display this or other websites correctly.
      You should upgrade or use an alternative browser.

      Shopify product.url | within: collection Internal Link Hack

      • Thread starter Chris
      • Start date Sep 6, 2021
      • Sep 6, 2021
      Shopify is a fantastic eCommerce platform for getting online stores up and running with relative ease. However, out of the box, Shopify does have some SEO disadvantages. One of the disadvantages is internal linking from collections (product category) to the product page.

      Shopify has a problem with internal passing SEO value (link equity) from the product category pages to the actual products. The problem is that by default the actual product URL path is housed within the category path like this: “/collections/all/products/test-product”. The canonical and XML sitemap version of the product URL path is “/products/test-product”.

      Technically speaking, the link equity is diminished to the product URL, the full value of an internal linking strategy is at jeopardy. I’m going to show you how to overcome that disadvantage.

      Head over Themes > Edit Code > Snippets


      Start by logging in to the Shopify administration panel. Head over Themes > Edit Code > Snippets. Find and open the “Product-grid-item.liquid” file. Locate this liquid snippet {{ product.url | within: collection }}, remove the “| within: collection”.

      shopify-admin.JPG

      ​

      Here is that instruction again:​

      Locate the file: Product-grid-item.liquid

      Find
      Code:
       {{ product.url | within: collection }}


      replace with
      Code:
      {{ product.url }}


      Save the file, navigate back to your website’s product collection page and refresh the browser window. Click on one of the products. If everything went as planned, you should reach the direct product URL path.


      shopify-admin2.JPG

      Increased organic search visibility for your products


      The internal links from collections to the product should no longer be “/collections/all/products/test-product”. The overall outcome of this Shopify hack should lead to increased organic search visibility for your products. The full link equity will be passed from collections to products.

      Outro – let me caveat this tutorial with I have used the Shopify default theme called Debut. Your Shopify theme may have a slightly different theme file hierarchy. You should speak with the theme author or developer for further advice. You can hire me on a consultancy basis if you need seasoned Shopify SEO guidance
       
      Click to expand...
      C
      Written by

      Chris

      Administrator
      Staff member
      • Messages
        51
      • Reaction score
        0
      • Points
        6
      You must log in or register to reply here.
      Share:
      Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Share Link

      New Posts

      • vogeldm
        SEO and Digital Marketing services
        • Started by vogeldm
        • Apr 22, 2022
        • Replies: 0
        Technical SEO
      • C
        Dropped .UK Domains 11th April 2022
        • Started by Chris
        • Apr 11, 2022
        • Replies: 0
        General Discussion
      • C
        Google Sheets Regex for excluding subfolders
        • Started by Chris
        • Oct 12, 2021
        • Replies: 0
        Technical SEO
      • C
        Modify or Deploy Meta Viewport - Google Tag Manager
        • Started by Chris
        • Sep 24, 2021
        • Replies: 0
        Technical SEO
      • C
        Open-source tools & projects that use Lighthouse
        • Started by Chris
        • Sep 24, 2021
        • Replies: 0
        Technical SEO
      • C
        How to Force HTTPS using .htaccess (cPanel)
        • Started by Chris
        • Sep 24, 2021
        • Replies: 0
        Technical SEO
      • C
        Canonical Tag Override using Google Tag Manager
        • Started by Chris
        • Sep 24, 2021
        • Replies: 0
        Technical SEO
      • C
        Websites to use DNS Prefetching & Prefetching
        • Started by Chris
        • Sep 24, 2021
        • Replies: 0
        Technical SEO
      • Hub
      • Technical SEO

    Join the Community

    Chris Lever is a freelance SEO Consultant availible for Hire. Join the growing SEO Community Forum to learn new skills.

    Join Us

    Need Help?

    • BB Code
    • Cookie Policy
    • Terms of Use
    • Privacy Policy
    • HTML Sitemap

    Learn More

    • About
    • Availability
    • Popular Posts
    • Projects & Scripts
    • Contact

    Get in Touch

    Chris Lever, Manchester, United Kingdom
    info@chrisleverseo.com
    +44 0161 883 2249

    © 2021 Chris Lever SEO. All rights reserved. Powered by Xenforo

    • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
      By continuing to use this site, you are consenting to our use of cookies.
      Accept Learn more…