All things Shopify and commerce
Hi there, I'm wondering if someone could help me with how to change the title of the products page on the craft theme?
I'd really like it to say 'packages' instead of 'products.
Solved! Go to the solution
This is an accepted solution.
@erin_smith26 , for this you have to update your collection name with the package. Follow the step to update your collection name:
From your Shopify admin, go to Products > Collections.
Click the name of the collection that you want to update.
@erin_smith26 , could you please explain me in detail? also, share your URL to get a better idea.
if possible share a screenshot what do you want to change?
I can help you with this.
I'd really like to change the wording of the heading circled below (it's on my products page)
This is an accepted solution.
@erin_smith26 , for this you have to update your collection name with the package. Follow the step to update your collection name:
From your Shopify admin, go to Products > Collections.
Click the name of the collection that you want to update.
To change the title of the products page on the Craft theme and replace it with "packages," you'll need to modify the theme files. Here's a step-by-step guide on how to do it:
Access your Craft theme files: You'll need to have access to the theme files either through a code editor or a file manager in your hosting environment.
Locate the file: Look for the file responsible for rendering the products page. Typically, it is named something like products.liquid or collection.liquid. If you're unsure, check the theme's documentation or ask the theme developer for guidance.
Open the file for editing: Open the file in a code editor or a suitable text editor.
Find the page title code: Look for the code that outputs the page title. It might look something like this:
<h1 class="page-title">Products</h1>
Replace the title: Replace the existing title, "Products," with "Packages" or any other desired title. For example:
<h1 class="page-title">Packages</h1>
Save the changes: Once you've made the modification, save the file.
Test the changes: Upload the modified file back to your website's theme directory and check the products page to see if the title has been updated to "Packages."
Please note that the specific steps may vary depending on the Craft theme version or customization. If you encounter any issues or have further questions, it's recommended to consult the Craft theme documentation or reach out to the theme developer for personalized assistance.
From the Online Store tab in your dashboard, click on the three dots for your theme and click Edit Code. Navigate to the "main-collection-banner.liquid" file in the Sections folder.
Then navigate to this code block:
<h1 class="collection-hero__title">
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
{{-" collection.title" | escape -}}
</h1>
You can do this by searching manually (it's towards the top of the file, at line 15-18 for me), or click on ctrl+f to pop up a search bar and input a part of the code block for quick search.
In this line:
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
{{-" collection.title" | escape -},
replace the "collection.title" part with whatever word you want to display as the page title. For example to display the word Services:
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
{{-" Services" | escape -}}
Hope this helps!
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024