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

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!
主站蜘蛛池模板: 长岭县| 丹寨县| 锡林郭勒盟| 乐至县| 西平县| 康保县| 汝城县| 横山县| 瓦房店市| 普定县| 治多县| 石楼县| 大安市| 石楼县| 滦南县| 阿拉善盟| 普安县| 桑日县| 双鸭山市| 监利县| 城固县| 德清县| 电白县| 潼南县| 柳江县| 唐河县| 鄄城县| 平陆县| 离岛区| 三台县| 大荔县| 望奎县| 堆龙德庆县| 壶关县| 嵩明县| 西平县| 乌鲁木齐市| 腾冲县| 绍兴县| 遂溪县| 林甸县|