How can I change the color scheme of customers login/register page?

Solved

How can I change the color scheme of customers login/register page?

IrenaP
New Member
7 0 0

Hi! I need some help with the code to change customers login page, it's using the color scheme which I don't want.

I want to use these colors:

Login page.png

I tried editing the code in Theme.liquid according to some suggestions I saw here but nothing happens.

I put the code before </head>. I don't know if there needs to be space/enter before head, I tried with and without but it didn't make any difference.

 

Here is the code I used:

<style>
#shopify-section-template--17416315699441__main {
background-color: #FCFCFC;
}

#login, a[href="#recover"], a[href="/account/register"] {
color: #0A1828;
}

button[fdprocessedid="9hlq0f"] {
background-color: #BFA181;
}
</style>

Accepted Solutions (2)

EBOOST
Shopify Partner
1043 279 315

This is an accepted solution.

Hi @IrenaP ,

May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code

EBOOST_1-1672356985580.png

2.  sections/main-login.liquid

3. Add schema setting

  {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.colors.label",
      "default": "scheme-4"
    },

EBOOST_0-1719807852081.png

4. Wrap content with a div 

<div class="color-{{ section.settings.color_scheme }}">

EBOOST_1-1719807979305.png

Remember add a close tag 

EBOOST_2-1719808021893.png

5. Go to customize -> login -> select color

6. Repeat steps above for register page 

EBOOST_4-1719808187433.png

7. If you used Dawn theme. You can used code here https://github.com/eboost10/2640367 to replace old code on your theme.

 

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤

View solution in original post

EBOOST
Shopify Partner
1043 279 315

This is an accepted solution.

Hi, 

You are missing step 4.

EBOOST_0-1719845645303.png

EBOOST_1-1719845678334.png

It have to like this one

EBOOST_2-1719845729620.png

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤

View solution in original post

Replies 6 (6)

EBOOST
Shopify Partner
1043 279 315

This is an accepted solution.

Hi @IrenaP ,

May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code

EBOOST_1-1672356985580.png

2.  sections/main-login.liquid

3. Add schema setting

  {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.colors.label",
      "default": "scheme-4"
    },

EBOOST_0-1719807852081.png

4. Wrap content with a div 

<div class="color-{{ section.settings.color_scheme }}">

EBOOST_1-1719807979305.png

Remember add a close tag 

EBOOST_2-1719808021893.png

5. Go to customize -> login -> select color

6. Repeat steps above for register page 

EBOOST_4-1719808187433.png

7. If you used Dawn theme. You can used code here https://github.com/eboost10/2640367 to replace old code on your theme.

 

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤
IrenaP
New Member
7 0 0

Hi!  I did all the above but when I go to customize and pick my color scheme nothing happens, it stays the same.

EBOOST
Shopify Partner
1043 279 315

Hi, 

Which theme are you using? Could you share your store URL? I will help to check it.

And could you check file Layout/theme.liquid has code likes the screenshot?

EBOOST_0-1719827439675.png

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤
IrenaP
New Member
7 0 0

Hi, I'm using Studio theme.

My store https://irenaplantekovic.com/

I've checked the code in the screenshot and it seems the same.


Code.png

EBOOST
Shopify Partner
1043 279 315

This is an accepted solution.

Hi, 

You are missing step 4.

EBOOST_0-1719845645303.png

EBOOST_1-1719845678334.png

It have to like this one

EBOOST_2-1719845729620.png

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤
IrenaP
New Member
7 0 0

Hi,

I did the step 4 but it seems on the wrong place.

It's ok now.

Thank you