How can I restore the deleted customer login code for the Dawn theme?

Hi there,

I was wondering if anyone would be able to assist me with this..

In the Edit Code tab for Dawn Theme, I deleted the “customers/login.json” template and code, which changed the appearance of my Customer Login Page. By chance, is there anyway to add it back in?

I have tried adding it back in myself by adding the Template section back and copying as pasting the same code back in from my previous theme, however, I get an error message in red stating “Section type ‘main login’ does not refer to an existing section file”.

Is it possible to add it back in so I can get the old appearance back?

Can anyone assist me with this?

Thank you in advance!

HI @SM45

This is David at SalesHunterThemes.
Have you check the section main-login.liquid file?
Maybe it removed from theme folder.

HI There!

Thank you so much for the reply! Appreciated!

So, I was able to check the section main-login.liquid file and it was missing along with several other .liquid files. I was able to copy and paste all of them from my previous Dawn Theme. After doing so, I was able to add and re-paste the “customers/login.json” file.

When I went back to preview the “customer login” page on my site, it worked! the format/presentation looks like how it was before. Yay!

However though, when I hover over section with the customer login when it highlights for edits, it now shows a “missing translation…” message around the border… (reference attached screenshot)

By chance, do you know if that will affect my customers when they navigate and login on that page? Will it also affect anything on the backend on my side?

Would you know how to fix this as well?

Thank you again in advance!

HI @SM45
Regarding to the translate issue,
Cause of the problem is in language file is missed,
In this case you can find in the main-login.liquid then replace the code translate with the content you want.
another way you can add the translate content in file en.default.shema.json, if you dont know how to edit code, this way seem harder than for you.

Thank you again for your reply!

Luckily I found that there was a prompt for my Theme. It showed that there was a problem and to save a copy to my Library and it will update any customizations I did to the code. I tried that and re-published my theme. Thankfully, it appears that it fixed itself. However, I did have to go back and redo somethings on my site because certain things changed.

I am so grateful that it appeared to have fixed itself, because I do not know anything about editing code lol.

Thank you again so much for your help! Definitely a Lifesaver!

Hi @SM45
Sound great to hear your problem is fixed.
If you need any help, do not hesitate to share with us, in some case I think we can help you.