官术网_书友最值得收藏!

Adding an image to a post

Luckily, WordPress makes adding images to your content very easy. Let's add an image to the post we've just created a minute ago. You can click on Edit underneath your post on the front page of your site to get there quickly. Alternatively, go back to the wp-admin, open Posts from the main sidebar menu, and then click on the post's title.

To add an image to a post, first, you'll need to have that image on your computer or know the exact URL pointing to the image if it's already online. Before you get ready to upload an image, make sure that your image is optimized for the web; for instance, you can use a service like TinyPNG (https://tinypng.com/). Huge files will be uploaded slowly and slow down the process of viewing your site. Just to give you a good example here, I'm using a photo of my own so I don't have to worry about any copyright issues (always make sure to use only the images that you have the right to use, copyright infringement online is a serious problem, to say the least). Once you have a picture on your computer and know where it is, carry out the following steps to add the photo to your blog post:

  1. Click on the Add Media button, which is right above the content box and below the title box:
  1. The box that appears allows you to do a number of different things regarding the media you want to include in your post. The most user-friendly feature here, however, is the drag-and-drop support. Just grab the image from your desktop, and drop it in the center area of the page, labeled Drop files anywhere to upload:
  1. Immediately after dropping the image, the uploader bar will show the progress of the operation, and when it's done, you'll be able to do some final fine-tuning:
  1. The fields that are important right now are Title, Alt Text, Alignment, Link To, and Size. Title is a description for the image, Alt Text is a phrase that's going to appear instead of the image in case the file goes missing or any other problems present themselves; Alignment will tell the image whether to have text wrap around it and whether it should be right, left, or center; Link To instructs WordPress whether or not to link the image to anything (a common solution is to select None); and Size is the size of the image (you can select from a couple of presets).

 

  1. Once you have all of these fields filled out, click on Insert into post. This box will disappear, and your image will show up in the post--right where your cursor was prior to clicking on the Add Media button, on the edit page itself (in the Visual editor, that is; if you're using the Text editor, then the HTML code of the image will be displayed instead).
  2. Now, click on the Update button, and go look at the front page of your site again. There's your image!
主站蜘蛛池模板: 昭通市| 溆浦县| 长泰县| 马边| 哈巴河县| 内江市| 基隆市| 两当县| 凤台县| 阳春市| 邹城市| 南乐县| 安徽省| 公安县| 和林格尔县| 三亚市| 民勤县| 延寿县| 长丰县| 大冶市| 兖州市| 开平市| 梓潼县| 嘉峪关市| 陆川县| 松滋市| 广饶县| 黄骅市| 齐齐哈尔市| 个旧市| 岳普湖县| 沧州市| 彩票| 德昌县| 沙湾县| 葵青区| 舞钢市| 库尔勒市| 靖边县| 新余市| 辽阳县|