Jump to content

Move price next to product title

Recommended Posts

  • Replies 3
  • Views 385
  • Created
  • Last Reply

Add to Last Line in Code Injection > Footer

<script>
  $(document).ready(function() { 
		$('.ProductItem-product-price span.sqs-money-native').appendTo('h1.ProductItem-details-title');
	});
</script>
<style>
  h1.ProductItem-details-title .sqs-money-native {
    float: right;
}
</style>

image.thumb.png.fb0ac365d05d0f6749c4935cf5fc0b0d.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
On 5/29/2021 at 8:43 PM, jdillagodzilla said:

Thanks @tuanphan 👍

wondering if you know how to now format the sale price. Ideally would love to have the original in black with a strike through.

example: https://www.shopuhhuh.com/shop/p/formation-09-rock-2 

Add to Design > Custom CSS

/* original price */
h1.ProductItem-details-title>span:last-child {
    color: black !important;
    text-decoration: line-through;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.