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. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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 (edited) 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, you’ll need some custom JavaScript to be written instead. I hope this helps. Edited July 25, 2023 by paul2009 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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
Ctje Posted July 25, 2023 Share Posted July 25, 2023 @paul2009 This could also solve my problem with trying to remove the login link gap in the header. Would you mind providing me with the JavaScript as well? Thanks Link to comment
Issi Posted December 28, 2023 Share Posted December 28, 2023 Hi James, I'm having some trouble with this too. When my members login, my website takes them to my old homepage rather than my new one. Is there anyway that when they login, they land straight on the the homepage I have set within the membership area? My website is www.id-wellness.com Thank you! Link to comment
MarkShiels101 Posted August 21 Share Posted August 21 Yes I am also having this issue and the fix supplied is not answering the query. Essentially as other posters have outlined we want the user to be directed to the paywall area of the site after logging in instead of staying on the page they logged in on. It means we have to put in either the main navigation a link to the members' area or a link on a page somewhere which is cumbersome and counterintuitive to UX principles.... is there a way for the user to be directed to the paywall area as well as having the 'account' link (once signed in) returning to the members' area if they access a different part of the site? 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