Jump to content

BRINE: Code Inject For Cart Page

Recommended Posts

Site URL: https://rafida.org

Hey,

I've added the below code as Code Inject for some pages to control the colour of certain icons in the social icons section.

How do I add the case code injection for the cart page?

Site access:
https://rafida.org
pass: lastphasetesting3


Code injection used:

<style>
  .SocialLinks-inner a:nth-child(5){
    colour: #000000;}
  .SocialLinks-inner a:nth-child(6){
    colour: #000000;}
  .SocialLinks-inner a:nth-child(7){
    colour: #000000;}
</style>

<style>
.SocialLinks-inner a:nth-child(5){filter: brightness(50%);}
.SocialLinks-inner a:nth-child(6){filter: brightness(50%);}
.SocialLinks-inner a:nth-child(7){filter: brightness(50%);}
</style>



 

Link to comment
  • Replies 5
  • Views 416
  • Created
  • Last Reply
3 hours ago, Rafida said:

I've added the below code as Code Injection for some pages. How do I add the CSS code injection for the cart page?

Code Injection is great for HTML and JavaScript, but when you're adding CSS it's usually better to add it to the Custom CSS panel in Design > Custom CSS.

You won't need the style tags and the styles will be applied to the entire site, including the cart page, unless you use selectors to limit the effect to a page, collection or element. For more details, you may find my article helpful: Using CSS on Squarespace.

Note that when styling the cart page, you'll need to save the CSS changes and then refresh the page before the changes will take effect.

   If a post helps you, please click a "Like" option below  ↘️

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.