Jump to content

Custom User Account Link is hidden in page header

Recommended Posts

Site URL: https://www.trainsinthevalley.shop/

Hi!

I just noticed today that my User Account Link is hidden.

My site has a custom HTML Header that I designed myself.

This code worked for months, but I noticed today that SQS's JavaScript isn't targeting the User Account Link. Therefore it isn't adding the "loaded" class to it. Also, it would normally remove the irrelevant span tag, so that only one would be displayed.

Most likely it was a recent update that broke my code.

I played around with the code inspector on Chrome, but I wasn't able to figure it out. So here I am!

I know this is a pretty unique situation, but any help would be super appreciated! I'm sure I'm just missing a JS class or something simple.

Here is my HTML:

<!-- User Button -->
<div id="user" class="user-accounts-link" data-controller="UserAccountLink" data-controllers-bound="UserAccountLink">
	<a class="user-accounts-text-link custom-button custom-button--header" style="line-height: unset;" href="#" tabindex="0" aria-label="Sign in or create account">
		<i class="material-icons custom-button__icon">person</i>
		<span class="auth custom-button__text">ACCOUNT</span>
		<span class="unauth custom-button__text" style="color: white;">SIGN IN</span>
	</a>
</div>

 

Thanks!

-Corey

Link to comment
  • Replies 1
  • Views 228
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.