Jump to content

Edit "Login" Button In Mobile Navigation

Recommended Posts

  • 6 months later...

Hi @tuanphan! Is there any way to edit the customer account login order on mobile? I have used css to change it to a button and moved the placement on desktop (to be after the contact button). However, I still can't get the placement of the login link on mobile to follow the contact button? I'd also love the button size/styling to match the contact button on mobile? I attached an image below. The link to the site is https://www.jennifergellerfitness.com/home. Thanks for any insight! I greatly appreciate it. 

Screen Shot 2021-04-03 at 9.50.30 PM.png

PATRICK GARR

🚀Helping artists become creative entrepreneurs 

w. PGCreativeDesigns.com

e. Hello@PGCreativeDesigns.com

Link to comment
On 4/4/2021 at 8:51 AM, pgcreativedesigns said:

Hi @tuanphan! Is there any way to edit the customer account login order on mobile? I have used css to change it to a button and moved the placement on desktop (to be after the contact button). However, I still can't get the placement of the login link on mobile to follow the contact button? I'd also love the button size/styling to match the contact button on mobile? I attached an image below. The link to the site is https://www.jennifergellerfitness.com/home. Thanks for any insight! I greatly appreciate it. 

Screen Shot 2021-04-03 at 9.50.30 PM.png

Add this to Last Line in Code Injection Footer

<script>
$(document).ready(function() { 
		$('.header-menu-nav .user-accounts-link').insertAfter('.header-menu-cta>a:first-child');
	});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/5/2021 at 6:22 AM, tuanphan said:

Add this to Last Line in Code Injection Footer


<script>
$(document).ready(function() { 
		$('.header-menu-nav .user-accounts-link').insertAfter('.header-menu-cta>a:first-child');
	});
</script>

 

This worked perfectly! Thank you so much @tuanphan. Do you know if there's a way to now center the text and that button only on the mobile navigation to match the contact? Thank you!!

Screen Shot 2021-04-06 at 1.54.22 PM.png

PATRICK GARR

🚀Helping artists become creative entrepreneurs 

w. PGCreativeDesigns.com

e. Hello@PGCreativeDesigns.com

Link to comment
On 4/7/2021 at 12:54 AM, pgcreativedesigns said:

This worked perfectly! Thank you so much @tuanphan. Do you know if there's a way to now center the text and that button only on the mobile navigation to match the contact? Thank you!!

Hi,

Add left: 50%; and transform translate -50%

.user-accounts-link .user-accounts-text-link span.unauth:before {
    visibility: visible;
    content: "LOGIN";
    font-size: inherit;
    color: #fff;
    font-family: Lato;
    text-align: center !important;
    position: absolute;
    font-weight: 400;
    letter-spacing: .02em;
    left: 50%;
    transform: translateX(-50%);
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/11/2021 at 10:26 PM, tuanphan said:

Hi,

Add left: 50%; and transform translate -50%


.user-accounts-link .user-accounts-text-link span.unauth:before {
    visibility: visible;
    content: "LOGIN";
    font-size: inherit;
    color: #fff;
    font-family: Lato;
    text-align: center !important;
    position: absolute;
    font-weight: 400;
    letter-spacing: .02em;
    left: 50%;
    transform: translateX(-50%);
}

 

This worked perfectly @tuanphan! Thank you so much!

PATRICK GARR

🚀Helping artists become creative entrepreneurs 

w. PGCreativeDesigns.com

e. Hello@PGCreativeDesigns.com

Link to comment
  • 2 months later...
On 4/11/2021 at 10:26 PM, tuanphan said:

Hi tuanphan

Add left: 50%; and transform translate -50%




.user-accounts-link .user-accounts-text-link span.unauth:before {
    visibility: visible;
    content: "LOGIN";
    font-size: inherit;
    color: #fff;
    font-family: Lato;
    text-align: center !important;
    position: absolute;
    font-weight: 400;
    letter-spacing: .02em;
    left: 50%;
    transform: translateX(-50%);
}

 

Hi tuanphanI am having the same alignment problems. Not sure if I made a coding error when following and older thread on this with you both. Its not aligned for mobile and pushed to the edge almost off screen on the browser. Confused but any help is greatly appreciated. Code + Screen Shots:

Screen Shot 2021-06-28 at 4.27.10 AM.png

Screen Shot 2021-06-28 at 4.28.17 AM.png

Screen Shot 2021-06-28 at 4.28.59 AM.png

Edited by imagineifnyc
Link to comment
On 6/28/2021 at 3:30 PM, imagineifnyc said:

Hi tuanphanI am having the same alignment problems. Not sure if I made a coding error when following and older thread on this with you both. Its not aligned for mobile and pushed to the edge almost off screen on the browser. Confused but any help is greatly appreciated. Code + Screen Shots:

Screen Shot 2021-06-28 at 4.27.10 AM.png

Screen Shot 2021-06-28 at 4.28.17 AM.png

Screen Shot 2021-06-28 at 4.28.59 AM.png

Hi. What is site url? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
15 hours ago, imagineifnyc said:

Edit line 15-17 to this

.user-accounts-text-link {
    visibility: hidden;
    font-size: 0;
}

Line 18-22 to this

.user-accounts-text-link:before {
    visibility: visible;
    content: "MEMBERS";
    font-size: 16px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 7/3/2021 at 3:00 AM, tuanphan said:

Edit line 15-17 to this

.user-accounts-text-link {
    visibility: hidden;
    font-size: 0;
}

Line 18-22 to this

.user-accounts-text-link:before {
    visibility: visible;
    content: "MEMBERS";
    font-size: 16px;
}

 

Hi Thanks 🙂that looks better on the browser. But on the mobile its small and off center. Any way to fix this?

 IMG_8784.thumb.jpg.7eccdada517bb9e3a3019b719228bd1f.jpg

Link to comment
  • 3 months later...
On 10/29/2021 at 8:35 PM, imagineifnyc said:

Hi sorry just now seeing this message! Yes, thank you any advice you can help with on these issues I would be eternally grateful! 🙂

Hi,

If you need to fix any problem, just let me know. We will check

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 months later...
On 3/21/2022 at 6:10 AM, pgcreativedesigns said:

@tuanphan I’m having this same issue on https://www.amplifyvocalstudio.com with the login button. Is there a way to make it match the same spacing, size and font size as the second button on both desktop and mobile menu? Thanks so much!! 

Try this CSS

/* Login button */
.user-accounts-text-link {
    padding: unset !important;
}
.user-accounts-text-link span {
    font-size: calc(~".9 * 1rem") !important;
    font-family: brandon-grotesque;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0em;
    text-transform: uppercase;
    line-height: 1.2em;
    padding: 0.96em 1.6032em !important;
    display: inline-block;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
15 hours ago, tuanphan said:

Try this CSS

/* Login button */
.user-accounts-text-link {
    padding: unset !important;
}
.user-accounts-text-link span {
    font-size: calc(~".9 * 1rem") !important;
    font-family: brandon-grotesque;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0em;
    text-transform: uppercase;
    line-height: 1.2em;
    padding: 0.96em 1.6032em !important;
    display: inline-block;
}

 

Hi @tuanphan! This definitely seemed to work a bit. For some reason the padding still isn't matching the Join For Free button on mobile... is there a way to fix this so these are both the same size? Thanks!

PATRICK GARR

🚀Helping artists become creative entrepreneurs 

w. PGCreativeDesigns.com

e. Hello@PGCreativeDesigns.com

Link to comment
15 hours ago, pgcreativedesigns said:

Hi @tuanphan! This definitely seemed to work a bit. For some reason the padding still isn't matching the Join For Free button on mobile... is there a way to fix this so these are both the same size? Thanks!

You can adjust this value

padding: 0.96em 1.6032em !important;

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...
On 4/15/2023 at 5:17 PM, jackravi said:

Hi @tuanphan 

I’ve just added a login button to my website www.JackRavi.com but on   the mobile version when I try and click on shop, newsletter or contact it selects login instead. Any idea how to fix that?

I hope you can help. Thank you!

Jack

692CF882-337D-420D-90D5-DC67FFBFA0FE.png

Because Login item padding overlap other menu items (green space in screenshot)

image.thumb.png.ecbfbc129d2350cce95bb50445b312c1.png

Add this to Design > Custom CSS to fix problem

/* Mobile Login item */
a.user-accounts-text-link.header-nav-item {
    padding: 0px !important;
    margin: 0 !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.