Jump to content

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

Recommended Posts

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

Link to comment
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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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
Link to comment
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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 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.