How to Add Text Overlay on Images in WordPress Easily?

  • Home
  • Wordpress
  • How to Add Text Overlay on Images in WordPress Easily?
How-to-Add-Text-Overlay-on-Images-in-WordPress

Would you like to add text overlay on images in WordPress?

The text overlay is an excellent way to add some extra information to an image. It also allows creating banners, headers, and even advertisements online quickly and easily.

The aim of this article is to demonstrate how you can add text overlay on images in WordPress.

How to Add Text Overlay on Images in WordPress?

WordPress websites with images look more appealing and help to break up large blocks of text.

You may need to add more explanation to your images, though. Adding text on top of an image could be a good way to explain what it shows and why you have included it in your post.

Adding text to images for banners and headers on WordPress blogs can make them more eye-catching and informative.

The following post provides three different methods for adding text on top of an image in WordPress.

  • Adding Text on Top of an Image Using the Image Block
  • Add Text Overlay on Images in WordPress using the Cover Block
  • Add Text on Top of an Image Using Gallery Images

Let’s start with how you add text over images in WordPress using the image block first.

Method 1: Add Text Overlay on Images in WordPress using the Cover Block

The Cover block in WordPress is a great way to add text to an image. Any image can be displayed using this block, and then text can be typed over it. As a result, the Cover block is ideal for creating banners, headers, and hero images.

In the WordPress block editor, click the plus (+) sign to add a Cover block to a page or post.

By typing in ‘Cover‘, you can now select the appropriate block.

wordpress-cover-block
Cover blocks include placeholder images and placeholder texts by default.

Simply click the image to replace the default. Click the ‘Replace‘ button once you have finished this step.

wordpress-cover-replace

Simply click on ‘Open Media Library‘ to choose an existing image from your WordPress media library. If you have more than one image, you can choose them all.

You can upload an image by clicking on the ‘Upload‘ icon instead.

cover-replace-upload

This will open a window and let you select an image from your computer.

When you choose an image, you can use the block settings to create some interesting and eye-catching effects. The image can, for instance, be fixed in place in the visitor’s browser window, or you can overlay colored text on the image.

cover-color-overlay

Using the ‘Opacity‘ slider, you can change the opacity of the overlay. The transparency of the overlay is controlled by the ‘Opacity‘ slider.

When you’re satisfied with how the image appears, it’s time to add some text.

The Cover block includes a Heading and a Paragraph block by default, where you may put text on top of the image.

cover-heading-paragraph

Simply click on the Heading or Paragraph block to add some text. Then enter the text that you wish to utilize.

When you add text on top of an image, it might be difficult to read sometimes. This is especially true for visitors with bad eyesight.

However, you may wish to format your content to make it simpler to read.

If you’re using a Heading block, you may also experiment with different heading styles to discover which one is easiest to understand and read.

wordpress-style-text

However, you can highlight your text using contrasting colors, and your text will stand out.

If you wish to apply a different color, go to the right-hand menu and select the ‘Block‘ tab. Following that, expand the section by clicking on ‘Color‘.

Once done, click on ‘Text.’ This brings a popup for you from where you can choose the color you want to apply to all the text.

cover-block-change-text-color
It’s very obvious that larger text is easier to read and visible.

Having said that, click on filed next to ‘Size‘, and type the larger number there that you prefer to have.

cover-block-change-text-size
When you find yourself satisfied with the looks of your Cover block, you can go for publishing or updating the page as normal. Well, everything completes here. Now, go to your website to see the changes. You’ll find your text on top of the image eventually.

Method 2: Adding Text on Top of an Image Using the Image Block

Creating banners and headers is easy with the Cover block. If you wish to add text to an image block in WordPress, you can also do so.

The first step is to add an Image block to your post or page. Using the WordPress block editor, just click on the plus (+) sign.

Enter the word ‘Image‘ and choose the right block to insert it into your post.

wordpress-image-block-to-add-text-overlay-on-images-in-wordpress

Clicking on Media Library will allow you to choose a picture from WordPress’ media library, or you can upload an image from your computer.

In the same way, described above, you can change the focal point, add an overlay, and change the opacity of your image after selecting it.

If you’re unsure what works best for your Image block, you can try using the ‘Fixed background‘ and the ‘Repeated background‘ sliders.

Once you are satisfied with your image, click the button labeled ‘Add text over image‘.

add-text-image

This allows you to enter text in a text area.

The text might be difficult to read, depending on your image. If the text is bold or the color is changed in the same manner described above, that may help.

image-block-color
Making your text bigger may also help.

To do this, head to the right-hand menu and click the ‘Size‘ section. Now, you can choose to have your text large or small by clicking on the different numbers.

small-large-text
You can save your changes by clicking on Save Draft, Update, or Publish once you’re finished editing your text and image.

Method 3: Add Text on Top of an Image Using Gallery Images

Using the usual ‘Gallery’ block, you can also easily add text overlay on images in a WordPress gallery.

  • For adding a new block to your page, select the block inserter (+) button.
  • Choose the gallery block this time. Alternatively, you may type /gallery and hit enter.

Adding-a-Gallery-Block

  • Two options will be available to add an image- Media Library and Upload. However, as we said earlier, choose Upload when you want to add an image from your device. On the other hand, choose Media Library if the image that you wish to add already exists on your site.
  • Once your uploading or selecting from the media library completes, adding a caption is now possible to each image. And this caption will appear text overlay on your gallery images.

Add-Captions-on-Gallery-Images

N.B: One thing to keep in mind is that if you captioned the images in the media gallery before adding the gallery block, the descriptions would display as text overlay on the gallery block. Captions are added to images after the gallery block has been created.

On the other hand, it will not display on the gallery block. In this instance, you must either manually add the captions after the gallery block is formed or delete the gallery block and re-add the block so that the newly supplied captions are utilized.

Over To You

That’s all there is to it. Using WordPress’s built-in Gutenberg block editor, you can easily add a text overlay to images in WordPress.

Finally, adding text overlay to images improves your website’s appearance, design, layout, and general aesthetics, providing a great first impression on your visitors.

As always, if you have any questions or concerns regarding placing text over images in WordPress, please post them in the comments section, and we’ll do our best to assist.

You may want to see our guide on how you can clear cache files in WordPress. You may also like to see our guide on how you can add special characters in WordPress.

If you like this post, be with ThemeLooks and subscribe to our WordPress video tutorials on YouTube. We may also be found on Twitter, LinkedIn, and Facebook.

  • 3828 Views
  • Comments are closed