{"id":80468,"date":"2023-03-13T09:51:26","date_gmt":"2023-03-13T09:51:26","guid":{"rendered":"\/tutorials\/?p=80468"},"modified":"2026-03-10T09:28:34","modified_gmt":"2026-03-10T09:28:34","slug":"how-to-add-images-wordpress","status":"publish","type":"post","link":"\/ca\/tutorials\/how-to-add-images-wordpress","title":{"rendered":"How to add images to WordPress using the block and classic editor + steps to edit images"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Using images can make your WordPress blog posts more appealing, as they break up lengthy text. Moreover, adding images will help you illustrate your points.<\/p><p>With the right image optimization strategy, you can also improve your WordPress site performance and position in search engine results pages (SERPs). The process involves various practices like optimizing the image size, file format, and ratio.<\/p><p>In this article, we&rsquo;ll show you how to add images to a WordPress blog post or page via the block and classic editors, as well as the Media Library. You will also learn how to edit the image size and details in the WordPress CMS.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-add-images-to-wordpress-using-the-block-editor\">How to Add Images to WordPress Using the Block Editor<\/h2><p>The block editor, also known as <a href=\"\/ca\/tutorials\/gutenberg-wordpress\">Gutenberg<\/a>, is the default WordPress editor that uses <a href=\"\/ca\/tutorials\/wordpress-blocks\">blocks<\/a> to add elements like images, paragraphs, and headings. It also enables you to <a href=\"\/ca\/tutorials\/how-to-add-a-post-to-a-page-in-wordpress\">add a post to a dedicated blog page<\/a> using the Query Loop block.<\/p><p>Adding images with the Gutenberg editor is relatively easy. All you have to do is upload an image file from your local computer, select one from the Media Library, or insert it via a URL. In this section, we&rsquo;ll go over all these methods.<\/p><p>First, log in to your WordPress dashboard and create a new post. In the post editor screen, insert the Image block using the <strong>Toggle Block Inserter<\/strong> button. Alternatively, use the keyboard shortcut <strong>\/images<\/strong> to quickly add the <strong>Image<\/strong> block to the editor.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/ca\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-adding-an-image-from-local-computer\">Adding an Image from Local Computer<\/h3><p>To add an image file from your computer, follow the steps below:<\/p><ol class=\"wp-block-list\">\n<li>Click the <strong>Upload<\/strong> button on the <strong>Image<\/strong> block to open your computer&rsquo;s files.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-Upload-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-Upload-button-1024x370.png\" alt=\"WordPress Image block highlighting the Upload button\" class=\"wp-image-80470\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"2\">\n<li>Navigate to the folder where you store the images. Select an image and click <strong>Open<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/Windows-File-Manager-showing-the-Pictures-folder-and-highlighting-the-Open-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/Windows-File-Manager-showing-the-Pictures-folder-and-highlighting-the-Open-button-1024x576.png\" alt=\"Windows File Manager showing the Pictures folder and highlighting the Open button\" class=\"wp-image-80472\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Here is an example of an image in a blog post:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-block-editor-showing-the-post-content.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"582\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-block-editor-showing-the-post-content-1024x582.png\" alt=\"WordPress block editor showing the post content\" class=\"wp-image-80473\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Save the changes.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-inserting-an-existing-image-from-media-library\">Inserting an Existing Image from Media Library<\/h3><p>Alternatively, try inserting images from the Media Library. Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>Click the <strong>Media Library<\/strong> button on the Image block.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-Media-Library-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-Media-Library-button-1024x370.png\" alt=\"WordPress Image block highlighting the Media Library button\" class=\"wp-image-80474\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"2\">\n<li>Select an existing image from the Media Library and click <strong>Select<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-window-highlighting-the-Select-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-window-highlighting-the-Select-button-1024x551.png\" alt=\"The Media Library window highlighting the Select button\" class=\"wp-image-80475\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Save the changes.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-adding-an-image-via-a-url\">Adding an Image via a URL<\/h3><p>The Image block enables you to insert an image using a custom URL. To do so, follow the instructions below:<\/p><ol class=\"wp-block-list\">\n<li>Click the <strong>Insert from URL<\/strong> button on the Image block to open the URL text field.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-URL-text-field.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"378\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-URL-text-field-1024x378.png\" alt=\"WordPress Image block highlighting the URL text field\" class=\"wp-image-80476\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"2\">\n<li>Copy the URL that contains your preferred image. For this tutorial, we took a picture from <strong>Unsplash<\/strong>. Right-click on the image and select <strong>Copy image address<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/An-image-of-dog-from-Unsplash-and-the-Windows-context-menu-highlighting-the-Copy-image-address-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"664\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/An-image-of-dog-from-Unsplash-and-the-Windows-context-menu-highlighting-the-Copy-image-address-button-1024x664.png\" alt=\"An image of dog from Unsplash and the Windows context menu highlighting the Copy image address option\n\" class=\"wp-image-80477\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"3\">\n<li>Go back to the block editor and paste the URL to the field. Click the <strong>Apply<\/strong> button or hit <strong>Enter<\/strong> on your keyboard.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-Apply-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"428\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-Image-block-highlighting-the-Apply-button-1024x428.png\" alt=\"WordPress Image block highlighting the Apply button\" class=\"wp-image-80478\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"4\">\n<li>Save the changes.<\/li>\n<\/ol><p>Moreover, WordPress enables you to set a <a href=\"\/ca\/tutorials\/wordpress-featured-images\/\">featured image<\/a> or a post thumbnail. Here are the steps to do so:<\/p><ol class=\"wp-block-list\">\n<li>From the block editor, open the block settings panel by clicking on the <strong>gear icon<\/strong> between the <strong>Publish<\/strong> button and the <strong>three dots<\/strong> menu.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-block-editor-highlighting-the-block-settings-panel-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"323\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-block-editor-highlighting-the-block-settings-panel-button-1024x323.png\" alt=\"WordPress block editor highlighting the block settings panel button\" class=\"wp-image-80479\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"2\">\n<li>On the settings panel, navigate to the <strong>Post<\/strong> tab &rarr; the <strong>Featured image<\/strong> section. Next, click the <strong>Set featured image<\/strong> area.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-block-editor-highlighting-the-Set-featured-image-area.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-block-editor-highlighting-the-Set-featured-image-area-1024x576.png\" alt=\"WordPress block editor highlighting the Set featured image area\n\" class=\"wp-image-80480\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"3\">\n<li>In the Media Library window, either upload a new image or select an existing one. Once added, click the <strong>Set featured image<\/strong> button.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-window-highlighting-the-Set-featured-image-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-window-highlighting-the-Set-featured-image-button-1024x551.png\" alt=\"The Media Library window highlighting the Set featured image button\" class=\"wp-image-80481\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"4\">\n<li>Save the changes.<\/li>\n<\/ol><h3 class=\"wp-block-heading\">Adding an Image from Openverse<\/h3><p><a href=\"\/blog\/wordpress-6-2\">WordPress 6.2<\/a> comes with <strong>Openverse<\/strong> integration, allowing you to add openly-licensed images directly from your editor.<\/p><p>To access this feature, select the block inserter from the top-left corner of the editor screen and open the <strong>Media <\/strong>tab. Click <strong>Openverse <\/strong>and select or search for any image to add it to the editor. WordPress will automatically store the image in the media library.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-openverse.png\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"560\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-openverse.png\" alt=\"The media tab on the block editor with Openverse highlighted.\" class=\"wp-image-86424\"  sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-how-to-add-images-to-wordpress-using-the-classic-editor\">How to Add Images to WordPress Using the Classic Editor<\/h2><p>To add images using the <a href=\"\/ca\/tutorials\/wordpress-classic-editor\">classic WordPress editor<\/a>, you will need to install the <a href=\"https:\/\/wordpress.org\/plugins\/classic-editor\/\" target=\"_blank\" rel=\"noopener\">Classic Editor plugin<\/a>. This is because newer WordPress versions don&rsquo;t have the classic editor by default.<\/p><p>Once the plugin is activated, set the classic editor as default. From the WordPress dashboard, navigate to <strong>Settings<\/strong> &rarr; <strong>Writing<\/strong> &rarr; <strong>Default editor for all users<\/strong>. Then, check the <strong>Classic edito<\/strong>r option and click <strong>Save Changes<\/strong> to confirm.<\/p><p>Unlike the block editor, adding images to a WordPress post using the classic editor can be done via the Media Library. Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>Create a new WordPress post and open it using the classic editor.<\/li>\n\n\n\n<li>Click the <strong>Add Media<\/strong> button to open the Media Library.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-classic-visual-editor-highlighting-the-Add-Media-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"565\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/WordPress-classic-visual-editor-highlighting-the-Add-Media-button-1024x565.png\" alt=\"WordPress classic visual editor highlighting the Add Media button\" class=\"wp-image-80482\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>On the Add Media window, select the <strong>Upload files<\/strong> tab and click the <strong>Select Files<\/strong> button to upload an image.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Add-Media-window-highlighting-the-Select-Files-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Add-Media-window-highlighting-the-Select-Files-button-1024x554.png\" alt=\"The Add Media window highlighting the Select Files button\" class=\"wp-image-80483\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"4\">\n<li>Once the upload process is complete, click the <strong>Insert into post<\/strong> button to add the image to the editor.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Add-Media-window-highlighting-the-Insert-into-post-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Add-Media-window-highlighting-the-Insert-into-post-button-1024x555.png\" alt=\"The Add Media window highlighting the Insert into post button\n\" class=\"wp-image-80484\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"5\">\n<li>Save the changes.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-how-to-add-multiple-images-using-wordpress-media-library\">How to Add Multiple Images Using WordPress Media Library<\/h2><p>The <a href=\"\/ca\/tutorials\/wordpress-media-library-tutorial\">WordPress Media Library<\/a> is a library that stores media files, such as videos, images, audio, and documents, in one directory. It also lets you upload multiple images at once.<\/p><p>Follow the instructions below to upload images to the Media Library:<\/p><ol class=\"wp-block-list\">\n<li>From the WordPress dashboard, navigate to <strong>Media<\/strong> &rarr; <strong>Library<\/strong>.<\/li>\n\n\n\n<li>In the Media Library screen, click the <strong>Add New<\/strong> button.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-screen-highlighting-the-Add-New-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"352\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-screen-highlighting-the-Add-New-button-1024x352.png\" alt=\"The Media Library screen highlighting the Add New button\" class=\"wp-image-80485\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Click the <strong>Select Files<\/strong> button to upload images from your computer. Alternatively, <strong>drag and drop<\/strong> them into the provided field.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-screen-highlighting-the-Select-Files-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"297\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Media-Library-screen-highlighting-the-Select-Files-button-1024x297.png\" alt=\"The Media Library screen highlighting the Select Files button\" class=\"wp-image-80486\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"4\">\n<li>Wait until the upload process is complete. Once finished, you can add the images to a page or post.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-how-to-edit-images-in-wordpress\">How to Edit Images in WordPress<\/h2><p>WordPress enables you to edit images, such as changing the size and adding details. In this section, we will show you how to use these features.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-edit-your-image-size-in-wordpress\">How to Edit Your Image Size in WordPress<\/h3><p>You can crop and scale an individual image via the Media Library. Follow the steps below:<\/p><ol class=\"wp-block-list\">\n<li>Open the WordPress admin dashboard and go to <strong>Media<\/strong> &rarr; <strong>Library<\/strong>.<\/li>\n\n\n\n<li>Select a picture you want to resize.<\/li>\n\n\n\n<li>In the image settings or attachment details window, click the <strong>Edit Image<\/strong> button.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-Edit-Image-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-Edit-Image-button-1024x551.png\" alt=\"The Attachment details window highlighting the Edit Image button\" class=\"wp-image-80487\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"4\">\n<li>Go to the <strong>Scale Image<\/strong> section on the right side of the image settings screen, then define new dimensions. Note that you can only scale images down.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-Scale-Image-section.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-Scale-Image-section-1024x552.png\" alt=\"The Attachment details window highlighting the Scale Image section\n\" class=\"wp-image-80488\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"5\">\n<li>Click the <strong>Scale<\/strong> button to confirm the changes.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-Scale-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-Scale-button-1024x551.png\" alt=\"The Attachment details window highlighting the Scale button\" class=\"wp-image-80489\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>It is also possible to change the <a href=\"\/ca\/tutorials\/wordpress-images-sizes\">WordPress images sizes<\/a> to fit your preference and help <a href=\"\/ca\/tutorials\/optimize-images-wordpress\/\">optimize your images<\/a> for increased web page speed and enhanced user experience.<\/p><p>Here are the steps to create custom sizes for these WordPress images:<\/p><ol class=\"wp-block-list\">\n<li>From the WordPress admin dashboard, navigate to <strong>Settings<\/strong> &rarr; <strong>Media<\/strong>.<\/li>\n\n\n\n<li>On the Media Settings screen, edit the values for the image max width and height.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Media-Settings-screen.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"590\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-WordPress-Media-Settings-screen-1024x590.png\" alt=\"The WordPress Media Settings screen\" class=\"wp-image-80490\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Save the changes.<\/li>\n<\/ol><p>Alternatively, you can edit the image dimensions directly in the block editor. This is useful if you want to adjust the image based on the content around it.<\/p><p>To do so, open the post or page that contains the image you want to edit, and follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Select the <strong>Image <\/strong>block you want to edit.<\/li>\n\n\n\n<li>Open the block settings panel by clicking on the <strong>Settings <\/strong>button on the top right corner of the editor and open the <strong>Block <\/strong>tab.<\/li>\n\n\n\n<li>You can customize the image in several ways. First, you can select an aspect ratio from the <strong>Aspect Ratio <\/strong>dropdown menu to automatically adjust the image size using the predefined ratio.<\/li>\n<\/ol><p>Alternatively, you can use the <strong>Width<\/strong> and <strong>Height<\/strong> fields to define a custom dimension.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"621\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/image-1.png\" alt=\"Custom image dimension settings for the image block in the block editor\" class=\"wp-image-98271\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-how-to-edit-image-details-in-wordpress\">How to Edit Image Details in WordPress<\/h3><p>Additionally, WordPress lets you edit the details of the images. For example, you can <a href=\"\/ca\/tutorials\/how-to-add-alt-tags-to-images-in-wordpress\">add alternative text<\/a> or alt text, a description, and a caption.<\/p><p>In this section, we will show you how to insert details into your images. Follow the instructions below:<\/p><ol class=\"wp-block-list\">\n<li>From the WordPress dashboard, open the <strong>Media Library<\/strong> and pick an image.<\/li>\n\n\n\n<li>In the image settings window, add details to your image, such as <strong>Alternative Text<\/strong>, <strong>Title<\/strong>, <strong>Caption<\/strong>, and <strong>Description<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-image-details-options.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/The-Attachment-details-window-highlighting-the-image-details-options-1024x551.png\" alt=\"The Attachment details window highlighting the image details options\" class=\"wp-image-80491\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Once finished, click the <strong>Close<\/strong> button to confirm the changes.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Adding images to a WordPress website is a great way to make your content look more engaging and enhance your SEO performance.<\/p><p>In this article, we provided a complete guide about adding images to your site via the WordPress block editor, the classic editor, and the Media Library. The methods are similar, so you can choose one that fits your preference.<\/p><p>Hopefully, this article has helped you understand how to add images in WordPress. If you have questions or difficulties, feel free to comment below, and we will give you answers. Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using images can make your WordPress blog posts more appealing, as they break up lengthy text. Moreover, adding images will help you illustrate your points. With the right image optimization strategy, you can also improve your WordPress site performance and position in search engine results pages (SERPs). The process involves various practices like optimizing the [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/how-to-add-images-wordpress\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":258,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Add Images to WordPress: Classic and Block Editors","rank_math_description":"Find out how to add images to WordPress, either by adding the images directly to the block or classic editor or by using the media library.","rank_math_focus_keyword":"how to add images to wordpress","footnotes":""},"categories":[1],"tags":[],"class_list":["post-80468","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-add-images-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-add-images-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/80468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/258"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=80468"}],"version-history":[{"count":13,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/80468\/revisions"}],"predecessor-version":[{"id":137936,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/80468\/revisions\/137936"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=80468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=80468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=80468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}