Jump to content

Move a Lightbox contact form from 'Additional Information' to 'Product Description'

Go to solution Solved by tuanphan,

Recommended Posts

Hi,

I've created a lightbox contact form in the 'additional info' section of my product but I want that to be in the 'product description' area just below the text. I've been messing about with it but can't seem to get it to work. Any help would be greatly appreciated!!

Edited by chrisjames
wanted to change site URL to one matching changes to be made
Link to comment
  • Replies 3
  • Views 231
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
On 1/28/2023 at 9:05 PM, chrisjames said:

Hi Tuan,

I thought I'd add the link to the product on here as well as the private message so others can see for future reference. 

https://www.cjwillis.co.uk/collection/p/steel-lamp

weirdly I entered the link to the website when I asked the question but when I checked it had disappeared!

Add this to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('section.ProductItem-additional .form-block').insertAfter('.ProductItem-details-excerpt');
	});
</script>

image.thumb.png.b33da073c87f7a3f60717ff5ce741949.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.