--- title: "Embed Videos on a Page" slug: "embed-videos-on-a-page" description: "Learn how to embed YouTube or CivicMedia videos on your web page using the Custom HTML widget, ensuring mobile responsiveness and secure code." updated: 2026-10-20T16:48:14Z published: 2026-10-20T16:48:14Z canonical: "www.civicplus.help/embed-videos-on-a-page" --- > ## Documentation Index > Fetch the complete documentation index at: https://www.civicplus.help/llms.txt > Use this file to discover all available pages before exploring further. # Embed Videos on a Page This article will tell you how to properly embed a video from YouTube or CivicMedia into one of your web pages, using the **Custom HTML** widget. > [!NOTE] > Important Notes > > - **Code**: > - **Open iframe**: `<iframe>` > - **Close iframe**: `</iframe>` > - **Height and Width**: > - Your iframe Embed Code requires a width and height to display correctly. Width measurements must be set as a percentage to be mobile-responsive. Height may be left as a number (which will indicate how many px of height will be used). > - **Example**: `width=100% height=”500”` > - **Troubleshooting**: > - Embedded videos may not appear if the source code is not a secure site (for example, http://). All embed codes require https:// > - **Example of a Robust Embed Code**: > - This code opens and has a percentage width, a display height, a secure source, and a closing code > - **Embedded video autoplay:** Videos embedded using an iframe (specifically YouTube and CivicMedia) can be set up to autoplay using query strings after the video URL. However, you **must** include the mute option. Otherwise, Chromium browsers (and Firefox) will block the action. > [!TIP] > Who can use this feature? > > System Administrators | Owners | Publishers | Authors ## Instructions 1. [Sign in to your site](/municipal-websites-central/docs/sign-in-to-your-site) 2. Copy the **embed code** from [YouTube](/municipal-websites-central/docs/embed-social-media-on-a-page-with-the-custom-html-widget#embed-a-youtube-video) or [CivicMedia](/municipal-websites-central/docs/obtain-civicmedia-embed-code) 3. Navigate to your desired **page** 4. Ensure that the **Live Edit state** is toggled to **ON**![The Live Edit status for a page is toggled to ON and highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Live Edit On - MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T13%3A53%3A29Z&se=2026-11-23T14%3A53%3A29Z&sr=b&sp=r&sig=BLAAPmMMmOm0f%2BLRWGgyVEtylGJv0TIguEUL4Hpal3M%3D) 5. Click on the **Widgets** tab in the Live Edit pane![The Live Edit tabs with the Widgets tab highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Live Edit Tabs Widgets Tab - MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T13%3A53%3A29Z&se=2026-11-23T14%3A53%3A29Z&sr=b&sp=r&sig=89EUorxYbrP5q8I4O7QSBfCvc8D9CN%2Fpx3TAzhSmGtY%3D) 6. Drag and drop a **Custom HTML Widget** onto your page![The Custom HTML widget being drag-and-dropped onto a page.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Drag-and-Drop%20Custom%20HTML%20Widget%20to%20a%20Page%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T13%3A53%3A29Z&se=2026-11-23T14%3A53%3A29Z&sr=b&sp=r&sig=QAjbv80Nk6ThEjd7iTGjUpAtfubhNKzJ%2Br5aQ27Ip4o%3D) 7. Paste your **Embed Code** into the widget and click the **Done** button![The Custom HTML widget on a page with embed code pasted within and highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Custom%20HTML%20with%20Embed%20Code%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T13%3A53%3A29Z&se=2026-11-23T14%3A53%3A29Z&sr=b&sp=r&sig=qKfz0PIqtfihQcoy6POUfFQnTpRi4EkwjmnaHOJJKEw%3D) 8. Click the **Save** button to update your page:![The Save button in the top right corner of the page.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Save Page - MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T13%3A53%3A29Z&se=2026-11-23T14%3A53%3A29Z&sr=b&sp=r&sig=VYKEDTfCxolSVe51sFOIgpcHtJJRC%2BWgXuPe9I6pGqM%3D) Pixels Uniform Resource Locator