Jump to content

Custom CSS Header Style - Apply p2 via custom CSS

Recommended Posts

Site URL: https://burgundy-tetra-8dp5.squarespace.com/

Hi there! I'll start off by apologizing as this very well could be a simple fix!

I've removed my cart icon and substituted text "Shopping Cart" and have two things I would like to edit.

First, I would like to apply the 'paragraph 2' style to this text in order to keep it cohesive with the rest of the nav pages, etc. as things will likely change as the design progresses. It seems quite a bit cleaner to attack this now rather than having to manually adjust font, size, spacing, etc. via Custom CSS for the "Shopping Cart (0)" every time the design is altered. 

Second, I would really love to hide the "(0)" until something is added by a customer- reappearing at "(1)", etc. 

I've got my custom CSS and a quick screen grab attached. Any insight or help would be greatly appreciated! Thank you : )

Erik

 

 

 

@media screen and (min-width:992px) {
/* Cart number to cart text */
span.sqs-cart-quantity:before {
    content: "SHOPPING CART (";
}
span.sqs-cart-quantity:after {
    content: ")";
}
header#header svg.icon.icon--cart {
    display: none;
}
.header .header-actions-action--cart .icon {
    width: auto;
}
.icon-cart-quantity {
    position: fixed !important;
    font-size: 33px;
     top: 10px;
       right: 10px;
}
}

/* Nav under header */
.header-title-nav-wrapper {
    flex-direction: column;
    justify-content: start !important;
}

 

 

Screen Shot 2022-01-03 at 2.59.08 PM.png

Link to comment
  • Replies 6
  • Views 712
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

10 hours ago, ehamline said:

Hi password is "welcome" thank you!

Thank you. You want to change "Shopping Cart", use p2 style. Is this right? Can you share link to a page where you use a paragraph 2? Just want to check p2 style.

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

Of course- p2 style is used on the Header Title "Together".

I'm editing the size and padding, etc. of "Shopping Cart" in custom CSS currently. But, this is a little sloppy as any time the browser window is resized it scales and pushes the "Shopping Cart" into a different position and size that is not relative to the mirrored header title "Together" on the opposite of the website.

Thank you! 

Link to comment
On 1/5/2022 at 10:49 PM, ehamline said:

Of course- p2 style is used on the Header Title "Together".

I'm editing the size and padding, etc. of "Shopping Cart" in custom CSS currently. But, this is a little sloppy as any time the browser window is resized it scales and pushes the "Shopping Cart" into a different position and size that is not relative to the mirrored header title "Together" on the opposite of the website.

Thank you! 

Shopping cart - title looks same here. Did you solve all?

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.