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

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!
主站蜘蛛池模板: 永宁县| 集贤县| 海南省| 巴彦淖尔市| 江安县| 临洮县| 工布江达县| 东源县| 紫金县| 梨树县| 揭东县| 乌拉特后旗| 西和县| 北京市| 靖安县| 祥云县| 同心县| 如东县| 香格里拉县| 抚松县| 云南省| 德化县| 兴业县| 庆城县| 辛集市| 息烽县| 凤凰县| 安徽省| 常宁市| 姚安县| 梧州市| 安乡县| 金山区| 响水县| 房产| 西城区| 隆昌县| 高唐县| 灵丘县| 雷山县| 济宁市|