Jump to content

How to get "Product title" and "Price title" on a single line on shop page store - Desktop

Recommended Posts

  • Replies 4
  • Views 635
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 9/9/2022 at 11:42 AM, Rjafadi said:

Site URL: https://www.prsnlhb.com/view-all

Hi Everyone,

Is there a way to move the price to the right side and on the same line? 

Screenshot 2022-09-09 at 05.40.05.png

#1. Add this to Design > Custom CSS

/* title price same line list page */
.ProductList-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#2. With individual products, add this to Last Line in Code Injection > Footer

<script>
  $(document).ready(function() { 
		$('.view-item section.ProductItem-details .product-price').appendTo('h1.ProductItem-details-title');
	});
</script>
<style>
  h1.ProductItem-details-title .product-price {
    float: right;
}
</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
  • 4 months later...
On 2/6/2023 at 9:40 AM, Hallowxx said:

Would you be able to help me do the same? The above solution didn't work for me.

I'd like to align the title & price on just the product blocks (not the product pages themselves) across all devices. 

My website is: www.hallowapotheca.com/shop

Use this CSS

div.productDetails {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
div.productDetails>* {
    margin-top: 5px !important;
    margin-bottom: 5px !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

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.