Adding "Create Account" button to theme home page

Highlighted
New Member
9 0 0

Hello,

 

I am using the solo theme, I am wanting to add a "Create Account" button next to where it says "Sign In" on the header bar while there is no user signed in.  I don't like that users have to click login to get to the registration page.

 

But I want the button to disapear when the user is logged in to an account.

 

Any ideas?

 

Thanks!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
60 0 14

Hey there,

Trey here from Shopify!

We can achieve this with some slight tweaks done to the theme's coding.

On a clean version of the Solo theme, you would see the following bit of code on line 109 of the theme.liquid file:

{{ 'customer.login.sign_in' | t }}

You'll want to add </a> to the end of the line, and then you'll want to hit the "Return" key to add in a blank line below it, and in the new line, add the following bit of code:

                 or
                  <a href="/account/register">
                  {{ 'customer.register.title' | t }}

You should end up with the following code in that particular section of the theme.liquid file:

                <a href="/account/login">
                  {{ 'customer.login.sign_in' | t }}</a>
                 or
                  <a href="/account/register">
                  {{ 'customer.register.title' | t }}
                  <span class="icon-fallback-text">
                    <span class="icon icon-user" aria-hidden="true">
                  </span>
                  </span>
                </a>

 

Hope that helps :)

 

Trey S
support@shopify.com

0 Likes
Highlighted
New Member
9 0 0

Thats perfect!

 

Thank you very much!

0 Likes
Highlighted
New Member
1 0 0

How can I do the same for the theme "hifashion" ???

0 Likes
Highlighted
New Member
1 0 0

Hi there,

 

I use Turbo theme from outofthesandbox and would just like to change the login button on the top right corner to the register page. 

I don't want to hide the button like the previous thread, it should say Account when logged in. 

 

Can someone help? 

 

TIA

 

Hannah

 

0 Likes
Highlighted
New Member
8 0 0

Hi,

I am using Supply Theme. I want to add icon for Sign In and Create Account . How can i do ?

 

0 Likes