Press ESC to close

How to Add Images & Videos in WordPress Posts

Adding images and videos to your WordPress posts is a great way to make your content more engaging and visually appealing. Whether you want to illustrate your ideas, provide visual examples, or simply make your content more dynamic, integrating media is essential. Here’s a step-by-step guide on how to add images and videos in WordPress posts.


How to Add Images in WordPress Posts

Step 1: Open Your WordPress Editor

  1. Log in to your WordPress Admin Dashboard.
  2. Navigate to Posts > Add New to create a new post, or go to Posts > All Posts to edit an existing post.

Step 2: Add an Image Block

  1. Once inside the editor, place your cursor where you want to insert the image.
  2. Click the “+” (plus) button on the left side or in the top toolbar of the editor.
  3. Search for Image in the block options or simply scroll down to find the Image block.
  4. Click on the Image block to add it to your post.

Step 3: Upload or Select an Image

There are three options for adding an image:

  1. Upload an Image:
    • If you want to upload a new image, click the Upload button.
    • Select the image from your computer and it will automatically be uploaded to WordPress.
  2. Select from Media Library:
    • If you’ve already uploaded the image to WordPress, click Media Library to browse your existing images.
    • Select the image you want to use and click Insert.
  3. Insert from URL:
    • If your image is hosted externally (e.g., on another website), you can click the Insert from URL link.
    • Paste the URL of the image in the field provided.

Step 4: Adjust Image Settings

Once the image is inserted, you can adjust its settings:

  1. Alignment: Click the image, and alignment options will appear in the block toolbar. You can align it to the left, center, or right.
  2. Size: Resize the image by selecting one of the predefined sizes (Thumbnail, Medium, Large, or Full Size) or manually resizing it by dragging the corners.
  3. Alt Text: Don’t forget to add Alt Text for SEO purposes. Click the image, and on the right sidebar, you’ll see an option to add alt text. This is important for search engines and accessibility.

Step 5: Link the Image (Optional)

If you want to make the image clickable, you can add a link:

  1. Click on the image to select it.
  2. In the toolbar, click the Link icon (it looks like a chain).
  3. Paste the URL you want to link to and click Apply.

How to Add Videos in WordPress Posts

Adding videos can make your post more dynamic and increase user engagement. WordPress makes it easy to embed videos from platforms like YouTube, Vimeo, or even self-hosted videos.

Step 1: Open Your WordPress Editor

As with adding images, start by either creating a new post or editing an existing one in the WordPress editor.

Step 2: Add a Video Block

  1. Place your cursor where you want to insert the video.
  2. Click the “+” (plus) button to add a new block.
  3. Search for the Video block or scroll down to find it in the available options.
  4. Click the Video block to add it to your post.

Step 3: Upload or Embed a Video

There are a few ways to add a video to your post:

  1. Upload a Self-Hosted Video:
    • If you have the video file on your computer, click Upload to upload it directly to WordPress.
    • After uploading, it will appear in the video block.
  2. Embed a Video from a Platform (YouTube, Vimeo, etc.):
    • If you want to embed a video from an external platform, you can use the Embed block or directly paste the video URL.
    • For example, if you’re adding a YouTube video, simply copy the YouTube video URL (e.g., https://www.youtube.com/watch?v=XXXXXXXXXXX).
    • Paste the URL into the block, and WordPress will automatically convert it into an embedded video.
  3. Embed Code (Advanced):
    • If you have an embed code from an external platform, you can use the Custom HTML block to paste the embed code.
    • This is useful for embedding videos from other sources not directly supported by the Embed block.

Step 4: Adjust Video Settings

Once the video is added, you can adjust settings such as:

  1. Alignment: As with images, you can align your video left, center, or right.
  2. Autoplay & Loop (For Self-Hosted Videos): You can enable options like autoplay and looping for videos that are hosted on your server.
  3. Video Size: Resize your embedded video if needed to make sure it fits the layout of your post.

Step 5: Link the Video (Optional)

Just like with images, you can make the video clickable:

  1. Select the video block.
  2. In the block toolbar, click the Link button.
  3. Paste the URL you want to link to and hit Apply.

Best Practices for Adding Images and Videos

  • Optimize for Speed: Large image and video files can slow down your site. Always optimize your images by reducing their file size without compromising quality using tools like TinyPNG or ImageOptim. For videos, consider hosting them externally (YouTube, Vimeo) rather than on your WordPress server.
  • Alt Text for SEO: Always add alt text to images to improve SEO and ensure your site is accessible to people with disabilities.
  • Responsive Media: Make sure that your images and videos are responsive, meaning they look good on all screen sizes (mobile, tablet, desktop). WordPress automatically adjusts media for responsiveness, but always double-check on different devices.
  • Avoid Overloading with Media: While images and videos can enhance your posts, too many can distract or overwhelm readers. Use media thoughtfully to complement your content rather than overloading it.
  • Compression for Faster Load Time: Use media compression tools to ensure that images and videos load quickly without affecting their quality too much.

Conclusion

Adding images and videos in WordPress posts is easy, and using media strategically can make your content much more engaging for readers. Whether you’re embedding videos from platforms like YouTube or uploading self-hosted images, the steps above will help you add media effectively. Always ensure your media is optimized for SEO and speed to enhance the user experience and improve your search engine ranking.

If you need help with any other aspects of adding media in WordPress or have questions about specific types of content, feel free to reach out!