6th December 2022

Average the Pictures in the “Set Featured Image” Section in WordPress

To add a featured image to a WordPress post, simply click the “Set Featured Image” link inside the featured image meta box shown in the screenshot below.

Set Featured Image
Set Featured Image

 

This will open the WordPress Media Installer. You can use it to upload an image from your computer or use an existing image from your media library. After selecting the image, simply click the Set Featured Image button.

WordPress Media Installer
WordPress Media Installer

 

Now we will adjust the featured image to centre on the page. For this, we will enter the settings by clicking the “Customize” button at the top of our site. After entering, let’s click “Additional CSS” at the bottom left.

Customize
Customize

 

After entering, let’s click “Additional CSS” at the bottom left.

Additional CSS
Additional CSS

 

By writing the following CSS code on the incoming page, it will bring all the prominent images in the centre.

CSS code
CSS code

 

Finally, by typing the code below, you will see that the picture comes in the middle.

.single .post-thumbnail {
text-align: center;
}
CSS code
CSS code

 

LEARN MORE  What is Carbon Black EDR? How to Use It? - Part 2

Leave a Reply

Your email address will not be published. Required fields are marked *