Jump to content

My custom code is being overwritten and I don't understand how to fix it

Recommended Posts

Posted

Site URL: https://www.themoneyjourney.co.nz/plans

Hello community,

When I initially created my website, I injected a code block in my store to better showcase my services (the standard templates focus on products but didn't fit my service business). Everything worked well for a year.

This week however, I noticed that buttons in my store are no longer legible. The code that dictates text colour is being overwritten to the same colour as the background. I've found a temporary fix to make it legible. However, I would like to understand how to fix it in the long run. Are you guys able to help please?

Thanks a million!

Christel

 

Images:

- Service offering (without legible buttons)

- Original injected code

- Browser inspection showing overwritten code

 

Services without buttons.PNG

Injected code.PNG

Browser inspection.PNG

Posted
8 hours ago, Christel_NZ said:

Site URL: https://www.themoneyjourney.co.nz/plans

Hello community,

When I initially created my website, I injected a code block in my store to better showcase my services (the standard templates focus on products but didn't fit my service business). Everything worked well for a year.

This week however, I noticed that buttons in my store are no longer legible. The code that dictates text colour is being overwritten to the same colour as the background. I've found a temporary fix to make it legible. However, I would like to understand how to fix it in the long run. Are you guys able to help please?

Thanks a million!

Christel

 

Images:

- Service offering (without legible buttons)

- Original injected code

- Browser inspection showing overwritten code

 

Services without buttons.PNG

Injected code.PNG

Browser inspection.PNG

It seems that you have figured it out, right?

image.thumb.png.c04e86dc64bf99c7c5114e20b0cb60fd.png

Do you still need help?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted (edited)

Hi @bangank36 thanks for checking, I do still need help!

What you can see on my website currently is the temporary fix I mentioned in my original post. I haven't found a way to change the text colour of the buttons, so I've changed the background colour. But it doesn't sit well with the overall design and I still don't know how to fix the text colour getting overwritten.

Edited by Christel_NZ
Posted
16 hours ago, Christel_NZ said:

Hi @bangank36 thanks for checking, I do still need help!

What you can see on my website currently is the temporary fix I mentioned in my original post. I haven't found a way to change the text colour of the buttons, so I've changed the background colour. But it doesn't sit well with the overall design and I still don't know how to fix the text colour getting overwritten.

Try the following code to change text color for button

#collection-607589d24ea7e5122971974d a[href*="store"] {
  color: red;
}

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 3 weeks later...

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.