Hello

Hello and welcome to my blog! I’m Darren Hamm, a mechanical engineer with a deep passion for design and innovation. I graduated from the Milwaukee School of Engineering in 2001 and have since been immersed in the world of mechanical engineering. Though I have a background in IT, my primary focus has always been on engineering and design.

From a young age, I’ve enjoyed freehand sketching, a skill I’ve developed over many years. My interests span from vehicles, particularly Volkswagen and BMWs, to my current project: a 1928 Ford Model A that I’m hot rodding with a Flathead Ford V8 engine. This project has been a long-held dream, and I’m excited to bring it to life.

In addition to my engineering pursuits, I’m actively involved in organizing USS Franklin reunions and managing the website ussfranklin.org. By March, I will have hosted three reunions, honoring the legacy of the ship and its crew.

I’m also passionate about leveraging technology to simplify engineering tasks. I’ve developed several websites, including a units converter and a description builder, to make engineering more efficient. With the help of AI, I’m able to bring these ideas to life more effectively and efficiently.

Thank you for visiting my blog. I hope you find inspiration in my journey and projects. Feel free to explore the articles and websites linked on the side for more insights into my work.

Posted in Uncategorized | Leave a comment

How to Easily Embed YouTube Videos Using the “Share → Embed” Code with a Custom HTML Block in WordPress


Introduction

Embedding YouTube videos on your WordPress site is a fantastic way to engage readers, keep visitors on your page longer, and improve your overall SEO. While WordPress offers a simple copy-and-paste method for embedding videos, sometimes you need a bit more control—like custom sizing, removing related videos, or adding specific parameters. In this tutorial, you’ll learn how to use YouTube’s “Share → Embed” code with a Custom HTML block to embed videos precisely the way you want.


Why Manual Embedding Is Worth It

  1. Advanced Customization: You can directly edit the <iframe> code to manage autoplay, remove related videos, or change the default size.
  2. Better Control Over Page Layout: Want a consistent video width or specific placement? Customizing the HTML code makes it easy to align your video with your site’s design.
  3. Fallback for Theme/Plugin Issues: Sometimes, WordPress themes or plugins can conflict with the auto-embed feature. A manual embed ensures you can display videos no matter what.

Step 1: Get Your YouTube “Share → Embed” Code

  1. Visit the Video on YouTube: Make sure you’re on the main watch page for the YouTube video you want to embed.
  2. Click “Share” Under the Video: You’ll see a pop-up with various sharing options.
  3. Select “Embed”: This will reveal an <iframe> code. Here, you can also adjust a few default settings (like whether to embed player controls or show captions).

SEO Tip: Use a relevant video title in your YouTube description and tags. This helps search engines better understand your content.


Step 2: Copy the <iframe> Code

After you click “Embed,” a box will appear with code that looks similar to this:

<iframe 
  width="560" 
  height="315" 
  src="https://www.youtube.com/embed/VIDEO_ID" 
  title="YouTube video player" 
  frameborder="0" 
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
  allowfullscreen>
</iframe>

Highlight and copy everything between the opening <iframe> and closing </iframe> tags.


Step 3: Add a Custom HTML Block in WordPress

  1. Open Your Post or Page: In your WordPress Dashboard, click on Posts (or Pages) and then Edit next to the content you want to modify.
  2. Insert a Custom HTML Block: Click the + icon to add a new block in the Gutenberg editor. Search for “Custom HTML” and select it.
  3. Paste the <iframe> Code: In the empty Custom HTML block, paste the code you copied from YouTube.

Example:

<iframe 
  width="560" 
  height="315" 
  src="https://www.youtube.com/embed/VIDEO_ID" 
  title="YouTube video player" 
  frameborder="0" 
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
  allowfullscreen>
</iframe>

Step 4: Customize Your Embed (Optional)

If you need more control, edit the <iframe> attributes:

  • Disable Related Videos: Add ?rel=0 to the end of the YouTube URL (e.g., https://www.youtube.com/embed/VIDEO_ID?rel=0). This helps keep users focused on your content rather than recommended videos.
  • Set Specific Width/Height: Update the width and height values to fit your layout (e.g., width="800" and height="450").
  • Enable Autoplay & Mute: Use parameters like ?autoplay=1&mute=1 to start the video automatically without sound (helpful if you want to feature a silent video loop).

Note: Be mindful with autoplay if you value user experience—unexpected audio can negatively impact visitor engagement.


Step 5: Preview and Publish

Once your <iframe> code is in place, click on Preview (or Preview in new tab) to check how your video looks. If everything appears correct:

  1. Click Publish or Update to make your changes live.
  2. Test the embedded video on different devices to ensure it displays correctly and remains responsive.

SEO Tip: Add a brief text introduction above the video summarizing its content. This helps both users and search engines understand the context of your video.


SEO Best Practices for Embedded Videos

  1. Use Descriptive Headlines: Make sure your blog post title and headings include relevant keywords like “Embed YouTube Video” or “Custom HTML Block.”
  2. Optimize Text Content: Provide a summary or transcript of the video in the post. Search engines can’t read video content, so having text is crucial for SEO.
  3. Responsive Design: Ensure your <iframe> is responsive. Many modern WordPress themes handle this automatically, but you can also use CSS for a mobile-friendly embed.
  4. Include Alt Tags for Images: If you add screenshots or thumbnails, make sure to include relevant alt text for those images.
  5. Encourage Engagement: Higher engagement (e.g., comments, shares, likes) signals Google that your content is valuable. Include a call to action asking readers to share or comment on the video.

Wrapping Up

Manually embedding your YouTube videos using the “Share → Embed” code and a Custom HTML block in WordPress is an excellent way to gain more control over your site’s multimedia experience. Whether you want to customize the dimensions, remove related videos, or tweak autoplay settings, having direct access to the <iframe> code opens up a world of possibilities.

By following the steps above—and incorporating strong SEO practices—you’ll create a better user experience for your audience, keep them engaged longer, and potentially improve your site’s rankings in search engine results. Give it a try, and you’ll see just how easy it is to level up your WordPress blog with richly embedded YouTube content!


Posted in Uncategorized | Leave a comment

ISO 11926 ORB Dimensions

Posted in Uncategorized | Leave a comment

How to Draw A Pickup Truck in Two Point Perspective

In this YouTube video I show how to draw a simple Pickup Truck in Two Point Perspective.

https://youtu.be/qOzomCO-hYc

Posted in Art | Leave a comment

Alt Codes

Thanks to Tim Woolfson at www.usefulshortcuts.com for the information below.  alt codes

Posted in Engineering | Leave a comment

Hole size chart

Posted in Uncategorized | Leave a comment

Virtual Living Room Phase 1


Solidworks Couch Art 1

Posted in Art, Engineering | Leave a comment

Tricycle

This is a tricycle idea i’ve been throwing around for years. Perhaps I will make it electric. Try to rotate and zoom on the image! 3D PDF!

Posted in Engineering | Tagged , , , , | 2 Comments

The latest incarnation of darrenhamm.com

Hello,

This is the latest incarnation of www.darrenhamm.com.  This site promises to be as boring and as meaningless as the previous incarnations. 

Have a wonderfull afternoon.

Darren

 

 

Posted in Uncategorized | Leave a comment