Goal: make the Dawn theme’s login page text editable via Shopify admin instead of hard‑coding it in main-login.liquid.
Original context: OP currently hard-codes a paragraph in main-login.liquid and wants to edit it later through admin (notes there are “Theme Content” fields for Accounts [classic] that would be ideal).
Proposed solution: Add a custom global theme setting.
• Edit config/settings_schema.json to create a new textarea setting (example JSON provided) labeled “Custom Text for Login Page.”
• In main-login.liquid, output {{ settings.login_page_text }} inside a
tag.
• Then edit the text via Online Store > Themes > Customize > Theme settings (references to Accounts/Login area). Code snippets are central to this approach.
Follow-up/Challenge: OP asks why not place the schema directly in main-login.liquid so the text is controlled at the section level (rather than as a global theme setting), noting this also works.
Status: No resolution yet. Two approaches on the table:
• Global theme setting (settings_schema.json) feeding main-login.liquid.
• Section-level schema directly in main-login.liquid.
Key decision (global vs per-section control) remains open.
Summarized with AI on December 11.
AI used: gpt-5.
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:
Step 1: Add the Custom Field to the Theme Settings1. Go to the Online Store in your Shopify Admin.
Under Themes, click Customize on the Dawn theme.
In the theme editor, look for Theme settings at the bottom left.
Open the Theme settings and check if there’s an option for Accounts or Login.
If there isn’t a pre-existing field for the text you want to edit, you will need to create a custom setting for it. To do this, you’ll need to edit your theme’s settings_schema.json file.
Step 2: Add a Custom Field in settings_schema.json
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:
In the Shopify Admin, go to Online Store > Themes > Actions > Edit Code.
Open the config/settings_schema.json file.
Add a new setting for your custom text, like this:
{
“name”: “Login Page Text”,
“settings”: [
{
“type”: “textarea”,
“label”: “Custom Text for Login Page”,
“id”: “login_page_text”,
“default”: “Enter your credentials and select the ‘Sign In’ button to access your account.”,
“info”: “This text will be displayed on the login page.”
}
]
}
Step 3: Update the main-login.liquid File to Display the Custom Text
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:
{{ settings.login_page_text }}
Step 4: Customize the Text in Shopify Admin
After you’ve added the setting and updated the Liquid file, you’ll be able to change the text from the Shopify Admin:
Go to Online Store > Themes.
Click Customize next to your theme.
Go to Theme Settings (bottom-left corner).
Find the Custom Text for Login Page field under the Accounts or Login settings.
Edit the text and save.
Now, you can modify the login page text directly from the Shopify Admin without needing to access or modify the Liquid files again.
If you’re unsure how to make changes to the code, don’t hesitate to contact me. I’m here to help!