Jump to content

Make price appear on the same line as the title in a product block

Go to solution Solved by Hallowxx,

Recommended Posts

Posted (edited)

https://www.hallowapotheca.com

I’d like to make the price appear on the same line as the title of product blocks as shown in attached pic. Any way to do that? I’ve tried various codes from similar questions on the forum but they haven’t worked. TIA

F9493155-5E7B-4676-836C-AA9E1E742EE2.jpeg

Edited by Hallowxx
Added site url
  • Replies 5
  • Views 519
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Can you share your website URL and this page? Thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted (edited)

Try this Custom CSS:

section[data-section-id="63cc7ae8b155d84db08b356f"] {
  #productDetails {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .product-price {
    margin-top: 1.5em;
  }
}

 

Edited by Ziggy

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • Solution
Posted

This is what ended up working for me:

div.productDetails {
    display: flex;
    align-items: top;
    justify-content: space-between;
}
div.productDetails>* {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

 

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.