Jump to content

Customizing a Carousel-portfolio-section with a code for a video lightbox button

Go to solution Solved by Ziggy,

Recommended Posts

Posted (edited)

Hi everyone, 

I need help to costumize the buttons in the carousel-portfolio-section so that they can open a lightbox.

I would like to use the carousel section to show short films posters, and to use the buttons under each picture to open a lightbox with the corresponding trailer (hosted on YouTube). 

I found a great tutorial with a free code (link below) that shows how to create a button to open a video-lightbox. I tried to put this code (with the 3 options of the tutorial) in the button costum area, and it seemed to work until I saved changes ; after that, it doesn't work anymore and the code appears in the button… then when I click on it, it brings me to the Error Page.

Here are some screenshots of the problem…

Does anyone know how to fix it ? how to costumize a button content in a designed section ?

Thank you for your help !

 

Link toward the tutorial page : https://www.kenwestphal.io/spacetutorials/squarespace-lightbox-video/

Link toward the related tutorial video : https://www.youtube.com/watch?v=dcGqrujn_B8

 

Screenshot : seems to work.png

Screenshot : but doesn't work.png

Edited by MCdP
I forgot a word
  • Solution
Posted

That tutorial requires that you use a code block for the button, it's not going to work just pasting the code into the button text field.

This plugin allows you to easily lightbox a video from any link or button:
https://www.sqspthemes.com/plugins/squarespace-video-lightbox-button

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.