All things Shopify and commerce
Using the Dawn theme, I know I can hard-code text on the Login page by editing the main-login.liquid file but how can I edit this text later without having to edit the liquid file? How can I add a custom field so that I can change the text later through the Shopify admin? So If I have add this code:
<p> Enter your credentials and select the "Sign In" button to access your account. </p>
How can I edit that later without having to edit the liquid file? I do see fields in the "Theme Content" settings for the Accounts (classic) Login page which would be the perfect spot for this.
To make the text on your login page editable without modifying the Liquid file directly, you can add a custom field to the Theme Content settings through Shopify's Custom Fields. Here's how you can do that:
You can add a custom field in the settings_schema.json file to make it editable from the admin. Here's an example of how to add a text area setting:
Now, in your main-login.liquid file (or wherever you want the text to appear), use the following code to pull the custom text from the settings:
<p>
{{ settings.login_page_text }}
</p>
After you've added the setting and updated the Liquid file, you'll be able to change the text from the Shopify Admin:
Now, you can modify the login page text directly from the Shopify Admin without needing to access or modify the Liquid files again.
Thank you for replying, sorry for the late response!
You sugest to add the schema to settings_schema.json and then to update the main-login.liquid file to pull the custom text from the settings.
Why not just add the schema to the main-login.liquid file? I can still pull the custom text from this file also which works as well.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025