Welcome to  TheHenryettan.com Community Pages

Graham-Dustin Public Schools

LIVE EVENTS

Steps to Embed a YouTube Video in Elementor Using the HTML Widget

  1. Find the Video:

    • Go to YouTube and open the video you want to embed.
  2. Copy the Embed Code:

    • Click on the “Share” button below the video.
    • Select the “Embed” option.
    • Copy the iframe code provided.
  3. Log into WordPress:

    • Go to your WordPress admin dashboard and navigate to the page or post you want to edit with Elementor.
  4. Edit with Elementor:

    • Click on the “Edit with Elementor” button to open the Elementor editor.
  5. Add the HTML Widget:

    • In the Elementor panel on the left, search for the “HTML” widget.
    • Drag and drop the “HTML” widget onto your page where you want the video to appear.
  6. Paste the Embed Code:

    • In the HTML widget settings on the left, paste the iframe code you copied from YouTube.

    Example iframe code:

    html
    <iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>

    Make sure to replace VIDEO_ID with the actual ID of the YouTube video.

  7. Adjust Size (Optional):

    • If you want the video to be responsive, you can modify the iframe to use a div wrapper with CSS. To do this, you can add the following code:
    html
    <div class="video-container"> <iframe src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe> </div>

    Then, add this CSS to your theme’s custom CSS section or the Elementor settings for the page:

    css
    .video-container { position: relative; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ height: 0; overflow: hidden; } .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  8. Publish:

    • Once you’re satisfied with how it looks, click the “Update” button to save your changes.

Testing

  • Preview your page to ensure the video is embedded correctly and plays as expected.

This method gives you more control over the embed code while allowing for customization. Let me know if you need any more help!

Steps to Embed a YouTube Video in Elementor

  1. Find the Video:

    • Go to YouTube and open the video you want to embed.
  2. Copy the Video URL:

    • Click on the “Share” button below the video and copy the URL (it will look like https://www.youtube.com/watch?v=VIDEO_ID).
  3. Log into WordPress:

    • Go to your WordPress admin dashboard and navigate to the page or post you want to edit with Elementor.
  4. Edit with Elementor:

    • Click on the “Edit with Elementor” button to open the Elementor editor.
  5. Add the YouTube Widget:

    • In the Elementor panel on the left, search for the “Video” widget.
    • Drag and drop the “Video” widget onto your page where you want the video to appear.
  6. Configure the Video:

    • In the widget settings on the left, paste the YouTube video URL you copied into the “Link” field.
    • Adjust settings like “Start Time,” “Video Ratio,” and whether to show controls or autoplay as needed.
  7. Responsive Settings (Optional):

    • By default, Elementor handles responsiveness well. However, you can check the responsiveness settings by clicking on the “Responsive” tab in the widget options to adjust margins and padding for different devices if needed.
  8. Publish:

    • Once you’re satisfied with how it looks, click the “Update” button to save your changes.

Testing

  • Preview your page to ensure the video is embedded correctly and plays as expected.

Additional Tips

  • You can also use the “HTML” widget if you prefer to use the iframe code. Just drag the “HTML” widget to your desired location and paste your iframe code directly into it. This allows for more customization if needed.

That’s it! You should now have your YouTube video embedded in your Elementor-designed page. Let me know if you need further help!