Adding "Create Account" button to theme home page

Mammoth_Apparel
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!

Replies 9 (9)
Trey2
Shopify Staff
59 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

Trey | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Mammoth_Apparel
New Member
9 0 0

Thats perfect!

 

Thank you very much!

kaiser_zafar
New Member
1 0 0

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

hannahc
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

 

Tulay
Tourist
10 0 0

Hi,

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

 

KirstySwales
New Member
2 0 2

Hi @Tulay Did you ever get a response or work out how to do this please as I also have supply theme and am trying to do this.

 

Thanks

Kirsty 

Dami_mond
Shopify Partner
47 0 10

Hello @KirstySwales 

 

My name is Damimond, I'm a Shopify partner,I read you have a problem with setting up registration form for your shop using supply theme.

 

I need more information from you such as your Shopify store so as to provide solutions.

 

Best regards

 

Damimond

Shopify Partner
KirstySwales
New Member
2 0 2

Hi, thank you for your reply.

 

Of course, how can I send you this information?

Thanks, Kirsty 

Dami_mond
Shopify Partner
47 0 10

Hello @KirstySwales 

 

I meant your Shopify store URL. You can send me a private message on WhatsApp:https://bit.ly/3CNzfFL

 

Best regards

 

Damimond

Shopify Partner