Jump to content

[Share] Click Text - Open Form Popup

Recommended Posts

If you can't make it work, you can share site url, I can help easier.

#1. First, you need to edit Site Footer

image.png.33293100ad1e6087a7052a9a9e596424.png

#2. And add a Form Block

image.thumb.png.86a04fe516442520f59ce1400b8947f6.png

#3. Click Design > Enable Lightbox

image.png.3039f0c8b4749396370888694227eeb9.png

#4. Highlight text > Click Link icon > Add link: #contact

image.png.8194eaea738a68d7fee0a30190e8cda3.png

#5. Use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('[href="#contact"]').on("click", function(event){
      event.preventDefault();
    $('button.lightbox-handle')[0].click();
  })
})
</script>

image.png.793f04746103f53cf1217eb56133d4fe.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
  • Replies 0
  • Views 605
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.