Notes and Tags
0 / 2
Newsletters
0 / 1
Emails for automations
0 / 1
Receipts and Tasks
0 / 2
Pipelines and Deals
0 / 2

Embedding Videos on Your Site

Updated on 6 Sep 2022

How to Embed Videos on your Site

Generally, we recommend using Simplero's media library when adding videos to your site. This makes it possible for us to make the videos fully responsive and usable in different types of content. But, if you for some reason want to embed a video, usually from YouTube or Vimeo, there are a couple of things to consider to ensure a good experience for your participants, especially if they are watching from mobile devices.

First of all, you need to ensure the video you are trying to embed comes from an https:// source – if it comes from an http:// source it can't be embedded in a Simplero site.

Youtube and Vimeo videos are embedded in what are called "iframes," and this causes potential problems since the iframe has a fixed width. By default, this width is greater than that of a mobile phone, so it'll break the layout when people visit your site from their mobile devices.

So, if you want to keep your pages in your site responsive, you'll need to change the width in the embed code for the video. Here's how you do this for YouTube videos:

  1. First of all, you need to make sure that the video is set to public or unlisted – videos with private status can't be embedded. To make sure your video is set to public or unlisted, follow these steps:
    • Go to your YouTube video manager
      • Click on your Picture profile from the upper right-hand corner and select My channel
        Change_YouTube_Manager_Setting_.png
      • Click the blue Creator Studio button
        Creator_studio_in_YouTube.pngYouTube_Creator_Studio_Menu.png
      • Find and mark off the video you want to change and click the Action drop-down menu
        Select_video_to_edit_YouTube.png
      • In the "Privacy" menu, choose your setting: Public/Unlisted
        YouTube_Public_or_Unlisted_setting.png
  2. Go back to your video, and get the embed code/link 
    • Click the Share option under the video
      Share_button_in_YouTube.png
    • In the pop-up screen, select the Embed option
      Get_embed_link_in_YouTube.png
    • Click the Copy button on the bottom-right corner to copy the embed code/link to your clipboard
      Copy_Embed_Link_in_YouTube.png
  3. Paste the embed code/link on the Source code function from your editor and change the iframe size (recommended size: width="320" / height="180")
    • Click the Source code function to open the screen
      Source_code_function.png
    • Paste the embed code/link and change the iframe size
      Change_iframe_size_in_source_code_function_screen.png
    • Click Ok to save
  4. If done correctly the video will show as seen below in the editor when you save the source code.



    When seen in the site from a PC, it is rather small, but your participants can then use the full-screen option, and on mobile it allows the rest of the space to resize properly.

Embed Videos From Dropbox

Here are the steps if you'd like to embed a video from your Dropbox account

  1. Create public Dropbox folder 
  2. Upload file in that folder 
  3. Create shared link --> https://www.dropbox.com/s/up0ywyf8056gjgx/SundGraviditet_traening_v2.mp4?dl=0 
  4. Replace dropbox.com with dl.dropboxusercontent.com and remove dl=0. New link --> https://dl.dropboxusercontent.com/s/up0ywyf8056gjgx/SundGraviditet_traening_v2.mp4 
  5. Insert new link in Iframe html: 
    <iframe width="560" height="315" src="https://dl.dropboxusercontent.com/s/up0ywyf8056gjgx/SundGraviditet_traening_v2.mp4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Embed Videos from Vimeo

You can embed videos from your Vimeo account. In order to do so, Vimeo requires the URL where the vimeos will be embedded to allow them to play. 

If you are offering the Simplero App, you will also need to add the app URL: https://mobileapp.simplero.com