Jump to content

How to add video to accordion on a personal plan?

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

You can add a video block under accordion then share link to page where you added it, we can give code to move video block into accordion

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 8/4/2023 at 1:35 PM, JAY1570048019 said:

Hi, it will be this page:

www.thebookofjoash.com/home-2

 

and the video in the block will be:


I am trying to include a video and/or image into each according section, for this accordion only.

 

hoping you can help!

thanks,

J

I don't see video block on the page. Can you check it again? 

and which accordion item do you want to add the video, below or above the text?

image.thumb.png.4bfa200d1aa2995b4a93fee292b8848c.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 8/10/2023 at 7:49 AM, JAY1570048019 said:

Hi @tuanphan here is the link:

https://www.bookofjoash.com/home-2

I want this video specifically to be in the first drop down. I also want to include other videos in other drop downs too.

Thanks,

J

Try adding a Markdown Block under Video Block > Then Paste this code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  $(document).ready(function(){
    $('div#block-yui_3_17_2_1_1691628325312_1595').appendTo('div#block-yui_3_17_2_1_1690854833627_1474 li:nth-child(1)');
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 8/12/2023 at 12:31 PM, JAY1570048019 said:

Hi @tuanphan it works but it doesn't disappear when you close the accordion, which is something I'm aiming to do.

And how would I replicate this for another video to sit under the second/third/fourth accordion drop down?

Thanks again,

J

Remove the code & try this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  $(document).ready(function(){
    $('div#block-yui_3_17_2_1_1691628325312_1595').appendTo('div#block-yui_3_17_2_1_1690854833627_1474 li:nth-child(1) .accordion-item__description');
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.