A user working with Shopify’s Dawn theme needs to customize the “Back to blog” button text for three separate blogs (“Blogs”, “News”, and “Topics”) so each displays its specific name rather than the generic default.
Problem: The theme settings only allow one global label for all blogs, but the user wants individualized text for each blog’s back button.
Solution provided: Modify the main-article.liquid file by replacing the existing back button code with:
Back to {{ blog.url | replace: '/blogs/', '' | capitalize }}
This code dynamically extracts the blog name from the URL and capitalizes it, automatically generating the correct “Back to [Blog Name]” text for each blog.
Status: The solution was accepted and the user confirmed it resolved their issue. The fix requires basic Liquid template editing but no new files.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
Hello, I’m new to Shopify and seeking assistance on customizing my website using the “Dawn” theme.
I have created 3 blogs on my website; called “Blogs”, “News” and “Topics”.
For each article, I want the “Back to xxx” button to say “Back to Blogs”, “Back to News” and “Back to Topics” respectively.
By default, the wording of the button is set as “Back to blog”, and although I have already figured out that I can change this wording on the settings page, I understand that this change applies to all blogs on the same website.
However, I want to set a different wording for each blog as mentioned above. I’m assuming I need to make modifications to the liquid files of my project.
In such case:
Which file(s) do I need to make changes to, and/or what new files should I create?
For each file, where and what changes/additions should be made?
I would very much appreciate to receive assistance/advice. Thank you in advance for taking your time go over this!
Actually, I’m working on this project on behalf of my client, and since this site is yet to be released I cannot disclose the URL. Also, the website is only in Japanese and there is no English translation. Apologies I did not make this clear in the initial post.
How about I create a simple test site which basically reflects the blogs situation, and give that URL to you?
Would you be able to look into it and provide your comments based on it?