How to format pop-up block on Studio theme?

Solved

How to format pop-up block on Studio theme?

Jaymi
Tourist
13 0 5

Hi there - I'm trying to add a pop-up block to my product page on studio theme and there are two issues: 

1. It shows up as white text and I can't figure out how to change the text color or size. 

2. There's a huge amount of padding around it that I'd like to remove

 

I can't seem to figure out how to customize the look of the pop-up block and would love help. 

 

Shop URL: https://shop.betterwithbirds.com/

 

Screenshot 2024-08-18 at 8.56.13 AM.pngScreenshot 2024-08-18 at 8.55.51 AM.png

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1220 318 372

This is an accepted solution.

Hi @Jaymi , 

Or you can follow these specific steps to customize the button more easily.

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1723997666189.png

 

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

 

section#MainProduct-template--22756906565938__main {
    padding-bottom: 20px !important;
}

modal-opener.product-popup-modal__opener.quick-add-hidden {
    margin: 0 !important;
    margin-bottom: -30px !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden button {
    color: #000000 !important;
}

 

 

Step 3: Save and reload home page.

=>> The result: I make color black for button and reduce padding of it. 

BSSCommerceB2B_1-1723997790773.png

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

 

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 10 (10)

BSSCommerce-B2B
Shopify Partner
1220 318 372

Hi @Jaymi,

I hope you are doing well,

You can change that block format by following this instruction

Step 1: Online store > Themes > Three-dot button > Edit code

Step 2: Find and Open theme.liquid file

Step 3: Add these codes right after the <head> tag

 

<style>
modal-opener.product-popup-modal__opener.quick-add-hidden {
background-color: red;
margin: unset;
padding-left: 13px;
}
</style>

 

BSSCommerceB2B_0-1723997449647.png

 

I hope this is useful to you!!! 🤗 If you need change color, just change color value in the code.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
Jaymi
Tourist
13 0 5

Thank you so much! Trying this out... 

BSSCommerce-B2B
Shopify Partner
1220 318 372

This is an accepted solution.

Hi @Jaymi , 

Or you can follow these specific steps to customize the button more easily.

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1723997666189.png

 

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

 

section#MainProduct-template--22756906565938__main {
    padding-bottom: 20px !important;
}

modal-opener.product-popup-modal__opener.quick-add-hidden {
    margin: 0 !important;
    margin-bottom: -30px !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden button {
    color: #000000 !important;
}

 

 

Step 3: Save and reload home page.

=>> The result: I make color black for button and reduce padding of it. 

BSSCommerceB2B_1-1723997790773.png

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

 

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
Jaymi
Tourist
13 0 5

This is exactly what I needed and the coding worked perfectly. Thank you so much!

BSSCommerce-B2B
Shopify Partner
1220 318 372

Hi @Jaymi , 

To be simple is to be great. We're happy to see that our suggestion helped you solve the issue, bro. 

Can you kindly give us some likes? This can be a reference for other merchants if they have an issue like you and greatly motivate us to contribute to our community.

Thanks in advance.

Have a nice day!! ^^

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
Jaymi
Tourist
13 0 5

Is there also a way to change the size of the text? 

BSSCommerce-B2B
Shopify Partner
1220 318 372

Dear my friend @Jaymi , 

You can completely change the size of the text by adding a CSS code to base.css with the font-size property.

What you need to do is find the correct class wrapping the text you want to resize and add the attribute:

In my example, I change the font-size of product title on your Product pages: 

.product__title h1 {
    font-size: 50px !important;
}

And the result will be: 

BSSCommerceB2B_0-1724000004546.png

😍 It's such my honor to help you, bro. 

If they are helpful, please give us likes and mark as the solution.

 

 

 

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
Jaymi
Tourist
13 0 5

So helpful!! Do you happen to know which CSS wrapper is around the pop-up block to adjust that text size?

BSSCommerce-B2B
Shopify Partner
1220 318 372

Yes my friend @Jaymi , 

What exactly section you want to change text size,  I haved check your site, I  didn't see pop-up block size chart on your product page.

BSSCommerceB2B_0-1724000833736.png

 

Can you kindly share the details of it (screenshot/ record) with us?

We will check it and suggest you a solution if possible.

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

niraj_patel
Shopify Partner
2378 514 511

Hello @Jaymi 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  .product button.product-popup-modal__button.link {
     color: #000 !important;
     background: #57c9a3 !important;
     padding-left: 1.3rem;
  }
</style>

niraj_patel_0-1723997984500.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com