How can I make the base price smaller on product site (Theme Be Yours)?

How can I make the base price smaller on product site (Theme Be Yours)?

FABIAN2
Tourist
6 0 0

Hi, 

 

I need help with the Theme Be Yours. I want to make the size of the base/unit price (€/L) smaller than the product price. We sell in 30 ml containers. For the collection site where you have an overview of several Products, I was able to fix it. I couldn't figure out how to do it on a product-specific site. How does that work?

 

Any help would be greatly appreciated. 

Replies 11 (11)

Boki97
Shopify Partner
72 5 10

Can you share link 

FABIAN2
Tourist
6 0 0

Here it is:

Boki97
Shopify Partner
72 5 10
small.unit-price bdi {
font-size: 12px !important;
}
FABIAN2
Tourist
6 0 0

Hi Boki,

 

Thanks for the quick reply. in which CSS file do I need to do it? The code I currently have in the component-price.css is the following:

.unit-price {
  margin-top: 0.6rem;
  color: rgba(var(--color-foreground), 0.7);
  font-size: calc(var(--font-heading-scale) * 1.3rem);
  display: inline; /* Ensure the entire unit-price is inline */
  line-height: 1; /* Prevent line-height issues */
}

.unit-price bdi {
  font-weight: 400;
  font-family: var(--font-heading-family);
  font-size: calc(var(--font-heading-scale) * 0.9rem); /* Smaller font size */
  display: inline; /* Ensure bdi is inline */
  line-height: 1; /* Keep line height consistent */
}

 

Boki97
Shopify Partner
72 5 10

Try to add it to end of this file if is not working try to find general CSS file and add it there

FABIAN2
Tourist
6 0 0

Thanks for the suggestion, but unfortunately it only seems to have an effect on the collections site.

Boki97
Shopify Partner
72 5 10

Try with different CSS file

FABIAN2
Tourist
6 0 0

do you have any suggestion which css it might be?

Boki97
Shopify Partner
72 5 10

give me list of css files

 

FABIAN2
Tourist
6 0 0

Screenshot 2024-09-04 at 23.51.34.pngScreenshot 2024-09-04 at 23.51.05.pngScreenshot 2024-09-04 at 23.50.35.png

Boki97
Shopify Partner
72 5 10

base.css