Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

7.1 Hide "Account Login" from header navigation menu


yazzi

Question

Site URL: https://highvibebiz.com

Can someone provide the CSS to hide Account Login from the header navigation menu on squarespace 7.1?

I currently have this code on my site to remove the Login Link in the Header Navigation Menu. The first display code works, but the word "Account'", would still appear for one second.
The second line of code was added to remove the margin around the link.
The third line of code was added so that you couldn't see the word "Account" load.
Unfortunately, when you load the page, you can still see the navigation menu shift from left to right as each of these codes are happening consecutively after the other. 
 

/*customer account login */
.user-accounts-link.loaded .user-accounts-text-link {
   display: none !important;
}
.header-actions--right .customerAccountLoginDesktop {
margin: 0 !important;
}
body:not(.tweak-transparent-header) .user-accounts-text-link  {
    color: #ffffff !important;
}

Link to post
  • Answers 16
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Add to Home > Design > Custom CSS .user-accounts-link { display: none !important; visibility: hidden !important; opacity: 0 !important; color: white !important; font-size

@Thedripfitnesshoboken Please post the URL to your site. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. We can the

Posted Images

16 answers to this question

Recommended Posts

  • 0
On 7/15/2020 at 4:45 AM, tuanphan said:

Add to Home > Design > Custom CSS


.user-accounts-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    color: white !important;
    font-size: 0 !important;
}

 

@tuanphan I was having the same problem where I have a custom icon for user account added to the menu options and the login text and the icon was appearing in the same space.  My intent is to remove the login text and just show the icon.  I used the snippet that you provided above, but I now have the issue where both the icon and the login have been removed from the menu page (see attached).  I would like the icon to appear between the contact menu text and the shopping bag icon.

Again my website is still private @ https://sunfish-alligator-jggp.squarespace.com/config/ pass $Square567.  Looking forward to your response.. 🙂

menu options remove login and add icon.jpg

Link to post
  • 0
13 hours ago, phowlett said:

@tuanphan I was having the same problem where I have a custom icon for user account added to the menu options and the login text and the icon was appearing in the same space.  My intent is to remove the login text and just show the icon.  I used the snippet that you provided above, but I now have the issue where both the icon and the login have been removed from the menu page (see attached).  I would like the icon to appear between the contact menu text and the shopping bag icon.

Again my website is still private @ https://sunfish-alligator-jggp.squarespace.com/config/ pass $Square567.  Looking forward to your response.. 🙂

Remove this code

.user-accounts-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    color: #fff !important;
    font-size: 0 !important;
}

Add this code

.user-accounts-link a {
    color: transparent !important;
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- I'm seriously sick. Off some time.

Link to post
  • 0
13 hours ago, kfalconer said:

this is so great @tuanphan !

Is there a way to have that user-accounts-link elsewhere while hiding it from the header? 

I'd love to have it as a button on a single page

Thank you so much!

Can you share site url? We can check easier.

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- I'm seriously sick. Off some time.

Link to post
  • 0
On 9/16/2020 at 3:57 AM, kfalconer said:

thank you @tuanphan! I hid the log-in using the code you offered but deleted that code now. 

Thanks for any help!

Add to Home > design > Custom CSS

.header-actions .user-accounts-link {
    display: none;
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- I'm seriously sick. Off some time.

Link to post
  • 0

I have SS 7.0 and it says "SIGN IN" in the header - it just showed up one day. Any CSS code to remove it from there? I tried the other codes and they didn't work.

@tuanphan 🙏

Edited by Minna
Link to post
  • 0

@Minna

Sounds like customer accounts have been enabled. If you don't need 'em try turning them off.

Let us know how it goes.

Edited by creedon

Hello I'm Thomas. I've been getting websites up and running for 26 years. I want to help you at whatever level meets your needs, from as little (if you're a DIYer) to as much as you need.

Link to post
  • 0

@Thedripfitnesshoboken

Please post the URL to your site.

If your site is not public please set up a site-wide password, if you've not already done so. Post the password here.

We can then take a look at your issue.

Hello I'm Thomas. I've been getting websites up and running for 26 years. I want to help you at whatever level meets your needs, from as little (if you're a DIYer) to as much as you need.

Link to post
  • 0
10 hours ago, Thedripfitnesshoboken said:

@tuanphan Hi! I used the code to take the login out of the navigation, but is there a code to have that accessible on just one page? Can I put the account/login access on a page instead fo the navigation so that way people can access their account while they are signed in?

Did you use above code? Remove code & add this code to Page Settings > Advanced > Header

<style>
  .header-actions .user-accounts-link {
    display: none;
}
</style>

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- I'm seriously sick. Off some time.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...