RoseanderMain Posted January 26, 2022 Share Posted January 26, 2022 Oddly, when a member logs in to a member area, the browser is not redirected to the member homepage. I find this very awkward. One suggestion was to create a link to the member homepage in the main menu. When a user is not logged in, the link will ask them to sign up, or sign in. Of course the problem with this is that there is a member homepage link, and also a login link. I found that it is possible to disable the login link using header admin tools (great!), but this also disables the account link once the member is logged in (not great). Q: Is there a css trick the will hide the login link in the main menu, but then not hide the account link in the member menu? Note that I have the member menu replacing the main menu. Thanks! James Link to comment
paul2009 Posted January 27, 2022 Share Posted January 27, 2022 It will help us if you can give us some additional context: We need to know the site's URL. This is essential for any question that involves code because it allows us to see the version/template and test potential solutions. Screenshots of the issue(s). A username/password for a member (or allow us to create one) so that we can logon to test it. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
RoseanderMain Posted January 27, 2022 Author Share Posted January 27, 2022 (edited) Thanks very much Paul, Hopefully the following provides sufficient information. I’ve set up a member account at:https://caterpillar-apricots-k88b.squarespace.com/ (site password: MrBubbles) Member credentials: sqsptest@roseandermain.com sqsptest123 You’ll see that if you log in using the standard LOGIN link, you do not go to the member homepage automatically. To me this is odd. I created a custom link in the main navigation called ALT LOGIN which asks for signup, or signin and connects to the proper member homepage. The problem is that we now have two ways to get in. It turns out that it is possible to disable the standard LOGIN link by editing site header elements. However, this also disables the ACCOUNT panel within the member area. So, my hope is that there is a way to have it both ways. My question again: Is there a css trick the will hide the LOGIN link in the main menu, but then not hide the ACCOUNT link in the member menu? Much appreciated! James Edited January 27, 2022 by RoseanderMain forgot to add a thanks!! Link to comment
paul2009 Posted January 27, 2022 Share Posted January 27, 2022 Hey James Thanks for providing the additional information. I'm now on the same page! On Squarespace, the user account link in the header is captioned as 'Login' when the user hasn't been authenticated, and this caption changes to 'Account' when a user has been authenticated by logging in. To hide the link when it's labelled Login, you can add this Custom CSS: .user-accounts-link .unauth { visibility: hidden; } This will leave a space where the 'Login' link would have been, and the 'Account' link will appear in this space when the user has logged in. If you'd prefer the 'Login' link to be removed and the gap to be closed, I'll need to provide you with some JavaScript instead. I hope this helps. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
lnharry12 Posted April 14, 2022 Share Posted April 14, 2022 @paul2009 I am having a similar issue and used the code above to hide the login header link. Could you provide me with the code mentioned above to close the gap? Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment