Jump to content

How to get "list title" and "list price" on the product/shop page on a single line ?!

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

8 hours ago, ellerxyz said:

Hi again @tuanphan would you happen to also know the code for putting the "item title" and "item price" on the same line on the product page too? Like this

image.png.929fa64a28bd21d12ee3a86b1b0f14eb.png

On mobile only or all devices?

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 1/6/2022 at 4:16 AM, ellerxyz said:

@tuanphan on all devices please!

 

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('.ProductItem-details .ProductItem-product-price').appendTo('h1.ProductItem-details-title');
	});
</script>
<style>
  .ProductItem-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

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.