We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Show the default view to everyone

Show the default view to everyone

DavidsDD
Tourist
7 0 1

I am in the UK and only serve the UK so I have been updating United Kingdom when customizing my Shopify website. 

 

I have recently found out from checks in Google search console that the default version has been getting indexed so all of my website copy and SEO efforts have not been shown to Google. 

 

Looking at my code there are 2 different templates for everything, a default version and a "context.gb" version. The "context.gb" version is being presented to my customers but the default version is being indexed by Google. 

 

I will copy everything from my United Kingdom version to the default version. I only have 1 version of URL's and want to keep it this way. 

 

1. Is there any way to present the default version to my UK customers? 

2. If not is there any way of presenting the United Kingdom version to Google for crawling and indexing? 

Replies 2 (2)

Bundler-Manuel
Astronaut
1195 56 141

Hello there David @DavidsDD  To set a default view for your store, I recommend the following steps

  1. 1. Access Theme Editor:
    Navigate to your Shopify admin panel, go to Online Store > Themes, and click Customize on your current theme.
  2. 2. Edit Code:
    In the theme editor, click the three dots (More actions) and select Edit code.
  3. 3. Locate collection-template.liquid:
    Find and open the collection-template.liquid file in the code editor. This file controls the display of your collection pages.
  4. 4. Modify the View:
    Look for the code that handles the product listing view. You'll likely find an if/else statement or a similar structure that determines the default view. Change this logic to always display the desired view (e.g., gridor list) when a collection is loaded.
  5. 5. Save Changes:
    Save your changes to the collection-template.liquid file.
     
Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.

onescales
Shopify Partner
183 3 21

can you specify where you are updating this info? in your case you should only have 1

Skyrocket Your Shopify Success with Our Proven Step By Step Growth Course

We Teach Shopify and Solve E-commerce Problems.
See our Youtube Channel for Tutorials - https://www.youtube.com/@onescales