Removing 'Create Account' and 'Login' from menu

Hi,

First of all, I am using the Brooklyn theme, and quite new to coding & css. Here’s my problem: I enabled customer accounts as optional in the checkout settings, but I want to remove the links that it creates in the menu. I also created a page called My account, which I want to link to the Login page. Once they are on that page, they will have the option to login or create an account. I can’t seem to find the option anywhere to remove the two automatically added buttons anywhere. I assume it should be coded, but don’t have any idea how.

Hi @cleverbottles

Add this css in asset->theme.scss file at bottom:

[href="/account"],[href="/account/login"],[href="/account/register"]{display:none;}

Hi @Jasoliya

Thanks for the help! That code indeed moved the account icon on desktop (which was first between the cart and the currency converter, see sc), but unfortunately on mobile when I click the three stripe menu, the options still appear as on the previous screenshot. Any idea?

Capture2.JPG

Thanks in advance,

Joshua

You want to remove account and login option right?

Send me your store url

Here’s what I’m seeing. I created a new menu called Help menu (and chose this as my secondary sidebar menu), and placed some pages in there. I also created a page called My account, and enabled Customer accounts (I want this). Unfortunately, when I click the hamburger menu button, it now shows the two options ‘Create Account’ and ‘Login’. I don’t want it to show those two options there. I only want it to show the page that I created called ‘My account’ and for that to link to the Login page (where they can login or sign up if they don’t have an account yet.

In my navigations, I can’t remove the two options because they are not there.

I think I need to add one simple line of code somewhere (probably the theme.scss like you mentioned), and don’t think hiring someone for that one line is necessary.

Any help would be appreciated!

Yes but your have to send me store url to apply my css without checking store code how can i send you solution.

cleverbottles.com

Add this css in asset->theme.scss file at bottom:

 #customer_register_link,#customer_login_link{display: none;}
1 Like

Hello, can you pleae tell me how can i remove these legal pages from my main menu on Brooklyn Theme :slightly_smiling_face: THANK YOU

Hi, this removes log in create account but doesn’t remove word ‘or’ . Can you help please?

send me store url

hello @Antonio16 and @Emilia1234

Please provide website url and if your store is password protected then also provide password so I can check and provide a solution here

1 Like

Emiliairis.com

Hi, on the homescreen header announcement bar I need to remove the whole wording “Log in or Create Account”. I already have code but it doesn’t remove ‘or’.

[href=“/account”],[href=“/account/login”],[href=“/account/register”]{display:none;}

#customer_register_link,#customer_login_link{display: none;}

hello @Emilia1234

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.

.post-large--display-table .header-bar__right .header-bar__module.header-bar__module--list{
    display: none;
}
1 Like

Works. Thanks so much! I will email you for additional things I need.

thank you for update

I am using the dawn theme. Would you please share the custom CSS for removing login in the mobile menu? Thanks in advance.

hello @apurbadas

Please provide website url and if your store is password protected then also provide password So I will check and provide a solution here.

1 Like

Hi @apurbadas

  1. Go to Online Store->Theme->Edit code
  2. Asset->base.css → paste bellow code in bottom of file

.menu-drawer__account{display: none;}