Getting Started with Wordpress - Images & Media


by Benjamin Robinson


In our first two “Getting Started with Wordpress” tutorials, we covered logging into WordPress, and working with text content in your posts and pages. In this third installment we’ll tell how to add pictures, galleries and videos.

Adding pictures and video is still very easy to do in WordPress, but there are a few tricky things you’ll need to be aware of.

Adding Photos: Being aware of “Float”

In WordPress, there are three primary ways an image can be placed into the content of a post or page:

  1. centered
  2. to the left of the text
  3. to the right of the text

Center alignment the simplest of the three to deal with: the picture clears the text on both sides of it, and centers itself in the middle of the content column. It is clear to see where the photo is and what comes before and after it.

Left and Right aligned images are trickier. Left and right aligned images “float” next to the text placed after them. That means whether you want to place an image to the left or right of some text, you need to insert the image before the text. You do this in the Edit Post or Edit Page window by simply placing your cursor right before the text, then clicking the “Add Media” button to add or find your picture (more on that below). Here’s what the Left or Right alignment will look like:

Photo by Katie Kosaya

For example, the picture of the drink is floating to the left of this text…

While the picture of the building is floating to the right of this text. Both images are actually placed before the text they float next to.

Unlike in Microsoft Word or other word processing (or design) software, positioning images more exactly is not simple to achieve on the web, whether you are using WordPress or not. Specific positioning is possible, of course, but it certainly requires knowledge of HTML and CSS to do correctly, so it is beyond the scope of this tutorial.

Anyway, these three positioning options are usually enough.

The size of the image makes a difference!

Your content column has a certain width. Images that are very large may fill the whole column and not appear to float, even if they are set to float right or left. Users wanting to see a larger version might click on the image to see the full size version in a Lightbox (see aside).

WordPress automatically makes additional image sizes for you when you upload a photo from your computer. The image sizes that are available by default are:

  • Full (the original that you uploaded)
  • Large (typically 1024px wide)
  • Medium (300px wide)
  • Thumbnail (150px by 150px square)

All of these reflect the original dimensions except “Thumbnail.” Thumbnails are small, perfectly square versions of your image as would be used for a small preview.

It’s important to select an appropriate size to allow space for text to flow around a floating image. Usually, the “medium” size option for an image works well for floating images.

Actually Adding the Photos

To add photos to a post or page:

  1. Open the post or page for editing in WordPress.
  2. At the top left corner of the page, click "Add Media."
  3. The media window will pop up. It looks like this: Add Media
  4. If you've already uploaded the image you need, you'll see it in the Media Library there. If you need to upload an image from your computer, click the "Upload Files" tab at the top left. You can drag an image onto the blank upload space, or click the "Select Files" button to browse for a file on your computer: Upload Media
  5. Once you've uploaded your image or found it in the media library, select it. Then set the insertion options on the right side of the screen -- this is where you'll set the alignment: Alignment
  6. You'll also set the size here -- for floating images, "Medium" is a good choice.
  7. And there are other options to be set: Attachment Details
    • Title: the title of the image that will appear when a user holds their mouse over the image. ("Tooltip")
    • Caption: An optional caption that appears under the image.
    • Alt Text: text that would show if the image failed to load -- also read by search engines!
    • Description: Not really necessary. A description for yourself, to help you organize photos in WordPress.
    • Link to: the location where the media file links when clicked. "Media File" is usually the best option, because people clicking on an image usually expect to see the full size version. You might also consider "none" if you don't want the picture to be made into a link.
  8. Once you've set all of the options the way you want them, click the blue "Insert into Post" button.

That’s it! You’ve added an image. You should see it show up in your content box.


Adding Galleries

Often, you don’t want to add just a single image, but rather you want to add a large gallery of images that users can click on to see bigger versions.

WordPress lets you easily insert picture galleries through the same “Add Media” button as photos.

To add a gallery:

  1. In WordPress, Open the post/page you want to add the gallery(ies) to.
  2. Click the "Add Media" button at the top left of the content box.
  3. At the top right of the Media popup, select "Create Gallery" instead of "Insert Media":
  4. Select the image from your media library you'd like to add to the gallery, or select "Upload Files" to add pictures from your computer.
  5. When you've selected all of the photos you want, click the blue "Create a new Gallery" button in the bottom right corner:
  6. You'll be taken to the gallery screen, where you see all of the images that you chose, and you have the option to add captions and change settings for them: The settings this time are:
    • Link to: Same as above, this setting dictates where the gallery images should link to when clicked. "Media File" is usually what you want. This means users are shown the full size version of the image, or the image pops up in a Lightbox. "Attachment Page" takes the user to a blank template page showing the picture and its title, which is not usually what people expect.
    • Columns: The number of columns that you want your gallery to have. Keep in mind that you don't want to have so many columns that the images don't fit horizontally in the area you're putting them.
    • Random Order: shuffles the pictures randomly each time the gallery is displayed. This is useful if you don't want to give certain images preference by displaying them in the same place every time.
  7. Once you're satisfied with the settings, click the blue "Insert Gallery" button.

Congratulations, you should see a box added for the gallery. You can click on the picture icon that appears in the upper left corner when you select the gallery block to edit it:

Preview or publish your post/page to see it.


Adding a Video from YouTube

The easiest way to add a video to your content is to embed it from YouTube. Once a video is on YouTube (even if it’s not yours) you can embed it in your website. YouTube videos are embedded through what’s called an “iframe.” An iframe is essentially a window on a page through which you can see another website.

Here are the steps to follow to embed a video:

  1. Find the video you want to embed on YouTube.
  2. Once you've opened the video, click the "Share" button below the video.
  3. Instead of "Share this video" select the "Embed" tab.
  4. Select the size of your embedded video.
  5. Copy the embed code (HTML) from YouTube.
  6. Go to your WordPress post/page in the editor. Find the location where you'd like to place the video. Switch to the "text" (HTML) tab at the top right of the content box.
  7. Paste the video in the text tab of the window, the pasted text should look something like: <iframe...></iframe>
  8. Save your draft or update your published post. Click on "Preview" or "View post" to see your embedded video.

YouTube makes it easy to embed videos by generating iframe code for you to copy and paste. To demonstrate both how to do it, and provide an example of an embedded YouTube video, here’s a video:

Congratulations, you’ve just embedded a video!


Conclusion

In these first three installments of “Getting Started …” we’ve gone through basically everything necessary to understand the Wordpress nomenclature and to work with post/page content in WordPress. The best way to learn is by experimenting yourself with your own web pages. And don’t fear that you might “break” your website: you’d almost have to do that intentionally, because WordPress saves revisions and you can always revert to a previous version if you save something you don’t like.

The next and final section of this introductory WordPress series will be about some other areas beyond the main content that you may need to edit: the Menu and Widgets.

Related Posts

So, Keokee hosts your email. Now what?

Have you found yourself needing to set up your email again, but can't find the information? Or, are you new to your office? Whatever the reason, follow the steps below to get up and running with your Keokee provided email in a jiffy.

Schweitzer marketer takes his work to the high places

What goes in to becoming a successful marketer? We get that question from clients...

Sandpoint Magazine's Summer 2017 issue is here!

The new issue of Sandpoint Magazine just hit the streets Friday, and it's already creating a buzz with its incredible cover kayaking photo taken by Woods Wheatcroft.

What's up on the Internet: The annual review of trends

An Internet trends guru, Mary Meeker of Kleiner Perkins Caufield & Byers, gave her annual assessment on May 31 at the Code Conference in California. For trend observers, here are some takeaways of major Internet trends

'Keokee presses past quarter century' looks at our history

Keokee hit its silver anniversary in May, marking the 25th year since the company began on a shoestring in May 1990.

Getting started with Wordpress - An intro

While we design custom websites from scratch, we're very big advocates of the industry trend that is putting website content management in the hands of the website owners with easy to use, non-technical tools. One of our favorite platforms for this is Wordpress.

Summer '14 Sandpoint Magazine is out + bonus video!

The new summer issue of Sandpoint Magazine hit the streets on Friday, May 16, and (if we don't say so ourselves) it is packed with excellent stories, photos and art about Sandpoint and our neck of these North Idaho woods.

This project is for the birds. Really is.

One of the most fun projects we have carried out with our own publications the last couple years has been the osprey and eagle cams we stream live onto our community portal website

Nine elements for a smart home page design

As a web designer, I often find myself very concerned with the overall visual appearance of a website: Is it clean enough? Do the fonts look nice? Is it attractive?

'Succeed by adapting': Spokesman-Review's take on Keokee

Every once in a while, Keokee wins a bit of publicity. Here's a story by Michael Guilfoil, for the Spokane Spokesman-Review's Sunday business section.