Jump to content

Product Detail Page - Change Size of Title and Price

Recommended Posts

Hi there,

I'm trying to change the size of my title and price on my product detail page.  I've tried using the Site Styles and the following CSS, however, nothing is working.

This CSS didn't work:

/* Product Block Titles */
.product-block .productDetails .product-title {
  font-size: 1.8em;
}
/* Product Block Prices */
.product-block .productDetails .product-price {
  font-size: 1.5em;
}
Link to comment
  • Replies 10
  • Views 888
  • Created
  • Last Reply

Top Posters In This Topic

On 10/28/2022 at 2:15 AM, xosarahdesigns said:

Hi there,

I'm trying to change the size of my title and price on my product detail page.  I've tried using the Site Styles and the following CSS, however, nothing is working.

This CSS didn't work:

/* Product Block Titles */
.product-block .productDetails .product-title {
  font-size: 1.8em;
}
/* Product Block Prices */
.product-block .productDetails .product-price {
  font-size: 1.5em;
}

That code for Product Block. With product detail page, it needs a different code. What is your site url? We can help easier

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
  • 2 weeks later...
  • 2 weeks later...
On 11/12/2022 at 11:57 PM, xosarahdesigns said:

Sorry about that.  The password is xosarahdesigns

Use some code like this

.pdp-layout .pdp-details .pdp-details-title {
    font-size: 1.8em !important;
}
.product-price {
    font-size: 2.2em !important;
}

 

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
7 hours ago, tuanphan said:

Use some code like this

.pdp-layout .pdp-details .pdp-details-title {
    font-size: 1.8em !important;
}
.product-price {
    font-size: 2.2em !important;
}

 

Thank you, it worked!  I would also like to change the spacing between the title, price and description.  Would you be able to provide a custom code for that?

Link to comment
On 11/21/2022 at 8:16 PM, xosarahdesigns said:

Thank you, it worked!  I would also like to change the spacing between the title, price and description.  Would you be able to provide a custom code for that?

Adjust these space?

image.thumb.png.d4fd221f0a4b92908e1594f34b197bbf.png

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.