Primitus Consultancy

View Original

How to add images and videos to Squarespace accordion

Squarespace is a powerful website builder that allows you to create beautiful and functional websites without any coding knowledge. One of the most useful features in Squarespace is the accordion block, which allows you to create collapsible content sections on your website. Currently, Squarespace does not offer an accordion with the option to add images and videos, so in this tutorial, we will walk you through on how to make your Squarespace accordion image and video friendly. This will work for Squarespace 7.1.

Complexity: Moderate


Step 1

Upload your image and video.

  • To do this go to the Home > Pages

  • Click on the + icon, this will open a pop up window

  • Click on the link icon

  • This will open another popup window

  • Click on the gear icon

  • This opens a popup window

  • Click on the File option

  • Here you click on the ‘UPLOAD FILE‘ link to upload your image and video files.

  • Once all the files are uploaded, click on the SAVE option to your to right.


Step 2

  • Add an Accordion Block

  • Click on pencil icon to add your content

  • This will open a popup window where you can add your content

  • Enter your content and for the image use this for

    [image|Alt text|image link]

    • image - > media type

    • Alt text -> describes the appearance or function of an image on a page

    • image link -> link when the image is clicked, this could be an external site, file etc. If there isn’t a link then use the hash tag #

    • So this example you will see image|my image|#


Step 3

  • Connect [image|Alt text|image link] to uploaded image.

  • Highlight [image|Alt text|image link] text for this example it is ‘image|my image|#‘ and then click on the link icon.

  • This will open a popup window.

  • Click on the gear icon

  • Select on the image you which to use

  • Click on the SAVE button.

  • Click on the APPLY option

  • Close the window.

  • Save the page


Step 3

Copy add the following JavaScript below to Settings > Developer Tools > Code Injection > Footer and then save your changes.

See this content in the original post

To add a video repeat steps 1 to 3. However instead of using [image|Alt text|image link] you use [video|Alt text|videolink] for example this be video|primitus Consultancy|https://primitusconsultancy.co.uk


If you have any questions or need any help with your Squarespace website design, you can book a 1:1 consultation.

See this gallery in the original post

All work in this guide is provided ?“AS IS”. Other than as provided in this agreement, this guide makes no other warranties, express or implied, and hereby disclaims all implied warranties, including any warranty of fitness for a particular purpose.

If you require professional advice, we recommend that you purchase the services of a developer.