CHAPTER 6

Creating Visual and Audio Content

Think Visually about Content

Every month, the Internet becomes a more and more visual medium. The ability to instantly capture and upload images or video, and the bandwidth required to be able to view them on any device, has captured the attention of the world. That is why your content needs to be as visual as possible. Making it so may not be obvious at first, until you begin to think visually.

Capture Everything on Camera

image

The ability of smartphones to capture high-quality images, video, and audio makes the job of gathering material for your website a snap. The trick is remembering to do it. Fresh fruit just delivered to your restaurant? Good crowd at your event? Unusual cause of a flat tire? Get at least a few images and a bit of video. Even if you are not sure how it will be used — grab it!

One Image per Post or Page

image

Aim to have at least one image for every post or page you create. Do not worry about getting overly creative; think relevance. It is as simple as a box of fresh apples in an article about fresh ingredients for your restaurant, or a close-up of a dripping outdoor tap in an article about preparing your home for winter. Of course you have the option of adding more than one image, or even a video, where appropriate.

Put a Human Face on It

image

We all know — and studies confirm — that we respond more to human faces. When possible, and when appropriate, try to include faces in your images or videos. And use real people. Stock photo models come off as fake for most websites. Encourage testimonial providers to include a picture or even a video. And yes, puppies and kittens do well too, if it makes sense for the content.

Look for Visual WordPress Themes

image

With all your hard work finding imagery, make sure your WordPress theme is going to use them effectively too. You may control what goes in your content, but the theme controls the other elements on the page. For example, does the theme place a large version of a post’s featured image at the top of the content? Does it use large thumbnails when listing posts?

Join the Infographics Revolution

image

Infographics are not new, just more sophisticated and, more importantly, easier to create. All it takes is a bit of imagination, and a free online image editing program, like Sumopaint.com, or even PowerPoint or Word to turn your statistics into a compelling visual. You can also use PowerPoint and Word as photo composition programs — mixing images, adding text, and so on.

Clear Text Is Worth a Thousand Pictures

image

Thinking visually is not just about images and video. Styling and laying out your text clearly helps the eye of the reader take in information. Can that paragraph be broken up into a list? Single-sentence paragraphs, used every once in a while, help create emphasis. Breaking up longer text with headings lets visitors scan more easily.

Prepare Images for Uploading

When you take the time to edit and resize images before you post them on your site, you ensure your images look their best and do not make your site load slowly.

Although WordPress has an image-editing tool, you will do better to prepare your images before uploading using image editors like Irfanview, GIMP, Picasa, or the do-it-all Adobe Photoshop. Your digital camera may provide a basic editing program, too.

Give Yourself Something to Work With

image

All the editing in the world cannot save a poor quality image. Lighting is one of the biggest problems for both images and video; position yourself or your subject for the best lighting possible. Framing your subject nicely, particularly for video, saves trying to fix it in the editor. And take photos or video at the highest quality possible. You can reduce size and quality in editing; you cannot increase them.

Crop to Focus Interest

image

Cropping is the term that editors use for trimming images. Use your editor’s cropping tool to eliminate distracting activity, objects, or blank areas, or to zero-in on the item of particular interest. And save an unedited version of the photo — although your editor may do so automatically, in case you change your mind.

Adjust the Image

image

Take advantage of the editor’s tools to eliminate “red eye” in flash photos, to straighten out sloping horizons, and to correct poorly rendered color, contrast, and other image flaws. You want people to see the image, not be put off by its shortcomings.

Resize the Image

image

The images that come out of the average digital camera or phone these days are at least 4 times larger than you need for the web. An image of 1,000 pixels in width essentially fills a screen; your camera generates images of 4,000 pixels or more. So resize the dimensions and save as a new image; never alter the original.

Save for Web

image

Whether you work in an image editor or a video program, always save your file for the web after fixing and resizing it. The Save for Web function (the name may vary) applies various types of compression to the file, making it as small as possible for faster loading in browsers. The editing program should advise you on the best settings, or you can search online.

Choose the Right File Format

image

For photographs, the best file format to use is JPG (sometimes spelled JPEG). Do not use PNG because the file will be unnecessarily large. You want to use PNG or GIF for graphics, such as logos and icons. PNG is best for transparencies; GIF can handle animations. When it comes to video, it is best to export and save the file as an MP4. If your program does not save that format, free converters are available online that do.

Upload and Insert an Image to a Post

You can upload and insert images to a post or a page while you are writing, or at any time. The advantage of doing it while you write is so you do not forget to add the image or images later.

If you are not sure where you want to use an image, you can upload it to the media library for use later. That is covered in the section “Upload Images to the Media Library.”

Upload and Insert an Image to a Post

image

003.eps From the Add New Post or Edit Post page, click in your post at the location where you want to insert your image.

003.eps Click Add Media.

image

001.eps The Media Uploader window opens on the Upload Files tab of Insert Media.

003.eps Click Select Files or drag an image from a folder on your computer to the upload window, and release the mouse button when the border of the drop-files area changes color.

The window switches to the Media Library tab; where the image thumbnail will eventually show, a bar indicating the upload progress appears.

image

001.eps When the image has uploaded, it is outlined and displays a check mark.

003.eps Scroll down so you can see all the fields of attachment details.

003.eps Change the title to something descriptive. The default title is the image’s filename.

003.eps Type alt text or alternate text to describe the image.

003.eps Choose the display settings: how you want the image aligned relative to the text, whether you want the image linked to anything, and finally the size of the image.

003.eps Click Insert into post.

image

The Media Uploader window closes.

001.eps The Edit Post window displays the image at the cursor location.

003.eps Click Save Draft or Update, depending on whether the post is a new draft or an existing post, to save the change.

Work with Images in the Content Editor

After you have inserted an image into a post or page, you can easily make changes to various settings — alignment, position, size, and more — all from within the content editor.

Work with Images in the Content Editor

image

Edit Image Settings in the Content Editor

003.eps Click an image in the content editor; a small menu appears above the image.

001.eps You can change the image alignment relative to the text.

001.eps You can delete the image from the post by clicking 9781119047759-ma013.tif.

Note: The image is not deleted from WordPress and can still be found in the media library.

003.eps Click the pencil icon (9781119047759-ma012.tif).

image

The Image Details window opens.

001.eps You can edit the caption and the alternative text.

001.eps You can access display settings: alignment, size, and whether the image links to anything.

001.eps You can click the Advanced Options 9781119047759-ma005.tif to add CSS classes and more.

001.eps You can click Edit Original to go to the WordPress image editor.

003.eps When you are finished making changes, click Update.

001.eps To close the window without changing the image, you can click 9781119047759-ma013.tif.

image

Move an Image

003.eps Click anywhere in the image, press and hold your left mouse button, and drag.

001.eps A small transparent version of the image moves with you. If you cannot see the text cursor below the image, your mouse pointer also indicates where the image will be moved to.

003.eps When you reach the new position, let go of your mouse.

image

001.eps The image appears in its new location. The alignment remains the same.

image

Resize Images in Real Time

Note: Although you can use the Image Details window to enter a custom width and height for your image, many people prefer to see what the change will look like in real time.

003.eps Drag one of the handles that appear after clicking anywhere in an image to resize.

001.eps As you drag, the new-sized image appears as a transparency and a small box shows the dimensions.

When you stop dragging, the image is resized.

Upload Images to the Media Library

If you have images you think would be useful for your site, you can upload them without putting them into any particular post or page. They will simply remain in the media library until you need them.

You access the Upload New Media page by clicking Add New under Media on the left admin menu. You can also click Media on the New menu of the toolbar.

Upload Images to the Media Library

image

003.eps Click Add New under Media on the left admin menu.

The Upload New Media screen appears.

003.eps Click Select Files to open a window for browsing your device.

You can also drag files to the outlined box.

image

A browse window opens, enabling you to find files on your device.

003.eps Select one or more images to upload.

Note: To select multiple files, press ( on a Mac) while clicking.

003.eps Click Open when you are finished selecting.

image

The browse window closes.

001.eps A list of all images appears at the bottom of the Upload New Media screen, with a progress bar for each.

003.eps When all the files have uploaded, click Library under Media on the left admin menu.

001.eps You can also edit any one of the uploaded images directly from this screen.

image

001.eps You can see all the new images at the top of the Media Library listings.

Note: Depending on your viewing habits, the media library may be in Grid view — a series of thumbnails in rows and columns.

The images are now ready to use anywhere on your site.

Edit Images in WordPress

Although it is better to edit your images before uploading them to WordPress, some edits you can make from within WordPress. In particular, you can edit the thumbnail versions that WordPress automatically creates for each image uploaded.

You can find the Edit Image or Edit Original button in multiple locations: the Edit Media screen, the Media Uploader window, the Attachment Details window, and the Image Details window.

Edit Images in WordPress

image

Edit an Image

003.eps Click Media on the left admin menu and make sure you are in List mode rather than Grid mode.

003.eps Locate your image and click Edit.

The Edit Media screen opens.

003.eps Click Edit Image.

image

The Edit Media screen changes to show the image editing tools.

001.eps The button bar: Crop, Rotate, Flip, Undo, and Redo.

001.eps The Scale Image box.

001.eps The Image Crop box, where you can choose an aspect ratio or edit the selection box.

001.eps The Thumbnail Settings box, which displays the current thumbnail and allows you to choose which version or versions the changes will be applied to.

Re-Crop the Thumbnail

Note: Because of the way WordPress creates thumbnail versions of images, they may not always look good.

003.eps To begin, click the image and drag.

image

Dragging creates a box with dashed borders.

The image goes darker except for the area inside the box.

001.eps You can resize the box by clicking any edge and dragging. Position your cursor in the center of the box to drag it around the image.

The goal is to find the portion of the image you want as the thumbnail.

003.eps When you are ready, click the Crop button (9781119047759-ma014.tif), which is now active.

image

The image now changes to show only the area you selected.

Even if the image is the way you want it, do not click Save yet.

003.eps Click Thumbnail under Apply Changes To (9781119047759-ma001.tif changes to 9781119047759-ma002.tif). You want the cropping to apply only to the thumbnail and no other size of the image.

003.eps Click Save.

The new thumbnail version will be visible under Thumbnail settings.

Note: You could also crop if you wanted to remove a portion of the image in all its versions — just be sure you correctly set Apply Changes To.

Two other common image edits you can make through WordPress are: horizontally flipping an image and scaling the dimensions of the entire image.

image

Horizontally Flip an Image

Note: Sometimes you find that an image would be better facing the opposite direction.

003.eps Click Media on the left admin menu and make sure you are in List mode rather than Grid mode.

003.eps Locate your image and click Edit.

The Edit Media screen opens.

003.eps Click Edit Image.

003.eps Click the Flip horizontally button (9781119047759-ma015.tif).

image

The image changes to face the other direction.

003.eps Choose which images this change should apply to (9781119047759-ma001.tif changes to 9781119047759-ma002.tif).

003.eps When you are satisfied with your settings, click Save.

image

Scale an Image

Note: WordPress automatically creates smaller versions of every image you upload. If you need a smaller image, use one of those. The Scale Image function reduces the dimensions of the full-size version of your image.

003.eps Click Media on the left admin menu and make sure you are in List mode rather than Grid mode.

003.eps Locate your image and click Edit.

001.eps On the Edit Media screen, the current full-size dimensions appear here.

003.eps Enter either a new width or new height. The other dimension is calculated automatically to keep the image proportions.

003.eps Click Scale.

The changes are applied. There is no Save required for this function.

image

001.eps The original dimensions change to reflect the scaling.

Restore Original Image

001.eps When you make changes of any kind, except for cropping the thumbnail, the Restore Original Image box appears.

003.eps Click Restore image to discard any changes — in this case, the scaling of the image.

Understand Featured Images

WordPress posts and pages can be assigned a featured image, which is meant to be representative of the content. That image then gets used in various ways by themes.

Use of Featured Images Varies by Theme

image

Many themes use a small version of the featured image when listing posts. Others place the featured image at the top of the content area when viewing the full post. Some use the featured image as part of the Next and Previous links that may appear on posts. Featured images are sometimes used to replace the header image of the site. Check a theme’s demo or documentation for an idea of how it would use a featured image.

A Featured Image Is Not a Thumbnail Image

image

In WordPress coding, the technical name of featured images is post thumbnail (001.eps), so you sometimes hear them referred to that way. The confusion is compounded by the fact that featured images are often used as thumbnails. In fact, it is important to have a featured image whose original is large, in case a theme requires a large version in certain places.

Use Any Image Uploaded to WordPress

image

When choosing a featured image, you are not limited to images you have used within the post. You can upload an image specifically to be the featured image, or you can use any existing image from the media library. The key is that the image is representative of or related to the content of the post or page.

Add a Featured Image

Whether or not your current theme uses featured images, it is good to get in the habit of assigning one to every post or page you create. The process is as simple as uploading an image to WordPress or selecting an existing one from the media library.

You can find the Featured Image meta box on any individual post or page screen. If it is not visible, use the Screen Options panel to restore the box.

Add a Featured Image

image

003.eps While writing or editing a post or page, click Set featured image in the Featured Image meta box.

The Media Uploader window opens, with only Set Featured Image as an option.

003.eps Click an image from the media library.

Note: Alternatively, click the Upload Files tab and follow the steps in the section “Upload and Insert an Image to a Post.”

001.eps The selected image appears in the Attachment Details section.

003.eps Click Set featured image.

The Media Uploader window closes.

image

001.eps The image you chose now appears in the Featured Image box.

001.eps The link has changed to Remove Featured Image. Click this and the image disappears and the link changes to Set Featured Image.

003.eps Save your changes to the post or page. Depending on its status, click Update, Publish, or Save Draft.

Insert an Image Gallery

The WordPress Image Gallery gives you a quick and easy way to display a set of photos or other images on your website. The gallery displays thumbnails of the images, and then you can click the individual images to view larger versions.

Insert an Image Gallery

image

003.eps Position your cursor in the content editor where you want the gallery to appear.

Note: Galleries cannot have text flowing around them, so your cursor needs to be on its own line.

Note: Commonly, galleries are placed at the end of a post or a page, but you can put them anywhere you want.

003.eps Click Add Media.

image

The Media Uploader window opens to the Create Gallery section.

If there are images in the media library, they appear by default. But you can upload images too.

003.eps Click each image you want. A check mark appears beside each.

001.eps Small thumbnails of all selected images appear at the bottom of the screen. This is a helpful reminder when you have a lot of images to scroll through.

003.eps When you are ready, click Create a new gallery.

image

The Media Uploader window changes to Edit Gallery.

003.eps Click to remove images, drag them to rearrange the order, or add captions.

003.eps Click Add to Gallery to add more images.

003.eps Click the Link To 9781119047759-ma005.tif to determine what happens when visitors click an image: see just the full-sized image or see it on its attachment page.

003.eps Click 9781119047759-ma005.tif and choose how many columns wide the gallery will be. This depends on the width of your content area and the image size you choose in step 10.

003.eps Click Random Order (9781119047759-ma003.tif changes to 9781119047759-ma004.tif) to have the order of images to vary.

003.eps Click 9781119047759-ma005.tif and choose the size of the images displayed: thumbnail, medium, large, or full-size.

003.eps Click Insert gallery and return to the content editor.

image

In Visual mode, you will see the gallery images. In the example, you see what the gallery looks like live on the site.

Edit an Image Gallery

When you have created a WordPress gallery, you can edit it any time. That includes adding or removing images, and changing their order and sizing.

Edit an Image Gallery

image

003.eps Click Posts or Pages on the left admin menu and locate the post or page with the gallery to be edited.

003.eps Click Edit to open the post or page.

003.eps Click the Visual tab.

003.eps Click anywhere on the gallery images or the area around them, and a gray box appears, outlining the gallery area.

003.eps Click the pencil icon (9781119047759-ma012.tif) in the small menu that appears at the top of the gallery.

001.eps You can delete the gallery by clicking 9781119047759-ma013.tif.

image

The Media Uploader window opens to display the Edit Gallery section.

The options here are the same as the ones described in the previous section, “Insert an Image Gallery.”

image

003.eps Click an image and drag it to change the order of images.

003.eps Click the Columns 9781119047759-ma005.tif to change the number of columns (2 in this example because of the size change in step 5).

003.eps Click the Size 9781119047759-ma005.tif to change the image size (medium in this example).

003.eps Click Update gallery.

image

The new order, sizing, and columns are reflected in the content editor.

003.eps Click Update for the post or page.

Embed YouTube (and Other) Videos

If you have a YouTube channel or store videos on a major video sharing site, such as Vimeo, you can play your videos on any post or page. In fact, you can play any public video from YouTube or other sites.

Embed YouTube (and Other) Videos

image

Embed a Video

003.eps After you find the video you want to post on your site at YouTube.com, click Share. Along with the share icons, you see the URL for the video.

003.eps Click in the field and copy the URL.

003.eps Return to the tab or window with your post or page admin screen.

003.eps Paste the URL on its own separate line.

Note: You may not see the URL because WordPress immediately begins trying to load the video.

Note: If there is anything else on the line where you paste the URL, the embedding of the video will not work.

image

001.eps A video player appears where you pasted the URL. Test the video by playing it right from the content editor.

003.eps Save your changes to the post or page. Depending on its status, click Update, Publish, or Save Draft.

image

Control the Size of the Video

Note: WordPress tries to fill the content area with the video, but if you want to control the sizing, you can, using a shortcode.

003.eps Click the Text tab in the content editor.

003.eps Type the following shortcode:

[video src="http://the'url-to-the-video.com" width="200" height="150"]

The dimensions are in pixels, and you would use whatever values you want. This example is deliberately small to show the effect.

Note: This shortcode can also be used in situations when you need the video to be on the same line as other content.

image

003.eps Click the Visual tab.

001.eps Switching to Visual mode shows the new sizing of the video.

Note: This shortcode works with embeddable video links from third-party sites or any link to an MP4 video file.

Upload and Insert Video to a Post

While it is better to let YouTube or other video services store and serve your video files, there can be situations where you want to upload them to your site. On WordPress.com, you will need to buy the Premium upgrade to be able to upload video files.

Upload and Insert Video to a Post

image

Upload and Insert a Video File to a Post

003.eps Click Add New under Media on the left admin menu.

003.eps Click Select Files and upload your video file.

003.eps When the upload finishes, click the Edit link next to the filename.

The Edit Media screen opens.

003.eps Copy the URL for the video.

image

003.eps Navigate to the post or page where you want to insert the video file.

003.eps Click the Text tab in the content editor.

003.eps Paste the URL on its own line in the content editor. This example uses Text mode, so no player appears.

003.eps Save your changes to the post or page. Depending on its status, click Update, Publish, or Save Draft.

image

001.eps WordPress automatically creates a player for your video file.

001.eps An embedded YouTube video has been left in this post to illustrate how the player for the uploaded file is equal in look and feel.

image

Add an Image to the Video Player

003.eps In an image editing program, create an image that the video player will display until play is started.

003.eps Click Add New under Media in the left admin menu, and upload the image to WordPress.

003.eps When the image finishes uploading, click Edit, and copy the URL for the image.

003.eps Click the Text tab in the content editor.

003.eps Type the following shortcode:

[video src="http://yoursite.com/wp-content/uploads/year/month.name-of-file.mp4" poster="http://yoursite.com/wp-content/uploads/year/month/name-of-file"]

Note: Substitute the URLs for your video and image files.

003.eps Save your changes to the post or page. Depending on its status, click Update, Publish, or Save Draft.

image

001.eps The image whose URL you placed in the shortcode now appears at the start of the video rather than the first frame of video.

Upload and Insert Audio to a Post

Whether it is music, a recording of a teleseminar, a speech, or you reading a post, audio is a valuable but often overlooked type of content for your site. Like video files, you can embed audio from sharing sites, or simply paste a URL to any MP3 file, including ones you have uploaded to your site.

Upload and Insert Audio to a Post

image

Upload and Insert Your Own Audio to a Post

003.eps Click Add New under Media in the left admin menu.

003.eps Upload your MP3 file to WordPress.

Note: On WordPress.com, you need to buy an upgrade if you want to upload audio files. See http://en.support.wordpress.com/audio for the options.

003.eps When the upload finishes, click the Edit link next to the filename.

image

The Edit Media screen opens.

001.eps An audio player appears at the top of the screen where you can test that your file is working.

003.eps Copy the URL for the audio file.

003.eps Navigate to the post or page where you want the audio to be played.

image

003.eps Click the Visual tab.

003.eps Paste the URL on its own line in the content editor.

Note: If there is anything else on the line where you paste the URL, then the audio player will not appear.

003.eps Click the Play button to make sure the audio works.

003.eps Save your changes to the post or page. Depending on its status, click Update, Publish, or Save Draft.

image

Upload and Insert Someone Else’s Audio to a Post

003.eps Navigate to the website of the podcast you are interested in.

003.eps Check for permission to use podcasts on your site.

001.eps If you want a particular episode, download the MP3 file and follow the instructions in the previous set of steps.

003.eps If the site has an embed code, copy and paste it into a widget, as described in the section “Display Social Feeds” in Chapter 11.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.229