Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Text on Top of an Image in WordPress (3 Methods)

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to add text on top of an image in WordPress?

A text overlay is a great way to provide some extra information about an image. It’s also a quick and easy way to create banners, headers, and even online advertisements.

In this article, we will show you how you can add text on top of an image in WordPress.

How to add text on top of an image in WordPress

When to Add Text Over Images in WordPress

Images can make your WordPress website look more interesting and help to break up large paragraphs of text.

However, sometimes your images may need more explanation. For example, you might add text on top of an image to explain what the image shows and why you’ve added it to your post.

Many WordPress blogs also add text on top of an image to create eye-catching and informative banners and headers.

In this post, we have three beginner-friendly ways of adding text on top of an image in WordPress. If you prefer to jump straight to a particular method, then you can use the links below:

One way to add text on top of an image in WordPress is by using the Cover block. You can use this block to show any image and then type text over the image. This makes the Cover block perfect for creating hero images, headers, and banners.

To add a Cover block to a page or post, simply click the plus ‘+ Add Block’ button in the Gutenberg block editor.

You can now type in ‘Cover’ and select the right block when it appears.

The WordPress Cover block

By default, the Cover block has a placeholder image and some placeholder text.

To replace the default image, simply click to select the image. Once you’ve done that, click on the ‘Replace’ button.

How to add text on top of an image in WordPress

If you want to use an image that’s already in your WordPress media library, then simply click on ‘Open Media Library.’ You can then choose an existing image.

If you want to upload a new image, then click on ‘Upload’ instead.

Uploading an image to the WordPress Cover block

This opens a window where you can choose any file from your computer.

After you choose an image, you can use the block settings to create some interesting and eye-catching effects. For example, you can make the image fixed in place as the visitor scrolls the page or add a color overlay to the image.

A colored cover overlay

If you do use an overlay, then you can change its opacity by using the ‘Opacity’ slider. The opacity setting controls the transparency of the background image.

When you are happy with how the image looks, you are ready to add some text.

By default, the Cover block has a Heading and a Paragraph block where you can add text on top of the image.

How to add text on top of an image in WordPress

To add some text, simply click to select either the Heading or Paragraph block. Then, go ahead and type in the text that you want to use.

When you add text on top of an image, that text can sometimes be difficult to read. This is particularly true for any visitors who have poor vision. To learn more, please see our guide on how to improve accessibility on your WordPress site.

That being said, you may want to style your text so it’s easier to read.

If you are working with a Heading block, then you can also try the different heading styles to see which one is easiest to read.

Styling the text on top of a WordPress image

You can also help your text stand out by using a contrasting color.

To choose a different color, select the ‘Block’ tab in the right-hand menu. Then, go ahead and click on ‘Color’ to expand this section.

Once you’ve done that, click on ‘Text.’ This opens a popup where you can choose a new color for all the text in the block.

Changing the color of text on top of an image

Typically, larger text is easier to read.

To make your text bigger, go ahead and click on the field next to ‘Size’ and then type a larger number into this field.

Adding text on top of an image in WordPress

Once you are happy with how your Cover block looks, you can publish or update your page as normal. Now if you visit your WordPress website, you’ll see your text on top of the image.

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

The Cover block is great for creating banners and headers. However, you can also add text on top of a standard WordPress Image block.

To start, you’ll need to add an Image block to your page or post. To do this, simply click on the plus ‘+ Add Block’ button in the WordPress block editor.

You can then type in ‘Image’ and select the right block to add it to your post.

The WordPress Image block

You can then either upload an image from your computer or click on ‘Media Library’ to choose an image from the WordPress media library.

After choosing your image, you can change its focal point, add an overlay, and change the opacity following the same process described above.

You can also try the different ‘Fixed background’ and ‘Repeated background’ sliders to see what works best for your Image block.

When you are happy with how your image looks, just click on the ‘Add text over image’ button.

Adding text on top of an image in WordPress

This adds an area where you can type in your text.

Depending on your image, visitors may struggle to read your overlay text. Here, it may help to make the text bold or change its color following the same process described above.

Changing the text color in WordPress

You can also make your text bigger.

To do this, find the ‘Size’ section in the right-hand menu. You can then go ahead and click on the different numbers to make your text larger or smaller.

Increasing the text size

When you are happy with how your text and image look, go ahead and preview your website. Then, click on ‘Save Draft’, ‘Update’, or ‘Publish’ to save your changes.

If you use a block WordPress theme, then you can use Methods 1 and 2 to add text on top of an image in any part of your theme using the WordPress Full Site Editor (FSE).

You can learn more about FSE in our complete beginner’s guide to WordPress Full Site Editing.

Method 3: Create a Custom Page Layout with Text on Top of an Image

The built-in WordPress blocks are a quick and easy way to add text on top of an image in WordPress. However, if you want the freedom to create completely custom page designs, then you’ll need a page builder plugin.

SeedProd is the best WordPress page builder plugin on the market. It allows you to add text on top of any image across your entire website.

Note: There is a free version of SeedProd, but for this guide, we will use the Pro version since it has more features.

You can read our complete SeedProd review for more details.

First, you need to install and activate the SeedProd plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you’ll need to enter your SeedProd license key. You can get this key by logging in to your SeedProd account. Then, click on the ‘Downloads’ tab.

Once you’ve done that, you can copy the key in the ‘License key’ section.

The SeedProd Downloads page

You can now paste this key into your WordPress admin area by going to the SeedProd » Settings page.

Once you are here, go ahead and paste your key into the ‘License key’ field.

Verifying your SeedProd license

Then you simply need to click on ‘Verify Key.’

After that, we are going to head over to SeedProd » Landing Pages and click on ‘Add New Landing Page’.

SeedProd's page design templates

Your next task is choosing a template, which will be your page’s starting point. No matter what SeedProd template you choose, you can customize every part of the template to perfectly suit your website and branding.

If you prefer to start with a blank canvas, then you can click on ‘Blank Template’.

The SeedProd ready-made templates

In all our images, we are using the Tasty Squeeze Page template, which is perfect for getting more subscriber campaigns.

Once you’ve found a template that you may want to use, hover your mouse over it. You can then click on the ‘Preview’ icon.

SeedProd's professionally-designed templates

This will show a preview of the template.

If you’re happy with how this template looks, then go ahead and click on the ‘Choose This Template’ button.

A lead generation and squeeze template

In the ‘Page Name’ field, type in a name for the page.

By default, SeedProd will use this name as the page’s URL. If you want to change this automatically-created URL, then simply edit the text in the ‘Page URL’ field.

Creating a custom page layout with SeedProd

When you are happy with the information you’ve entered, click on the ‘Save and Start Editing the Page’ button. This will open the template in SeedProd’s drag-and-drop editor.

In the left-hand sidebar, you’ll see all the blocks and sections that you can add to your page using drag and drop.

Adding blocks to your SeedProd design

Unless you’re using the Blank Template, your SeedProd page will already have some blocks and sections. To edit any of this content, simply click to select the block or section.

SeedProd’s left-hand menu will now show all the settings you can use to customize this block or section. As you can see in the following image, if you click on a Headline block, then you can change the text that shows up in this block.

Customizing a ready-made SeedProd page design

The easiest way to add text on top of an image is by using one of SeedProd’s ready-made Hero sections.

These sections have a placeholder, full-width background image, with some placeholder text added on top. You can simply replace the default background image and text with your own content.

To get started, click on the ‘Sections’ tab in SeedProd’s left-hand menu.

You can then click on ‘Hero’ to see all of the ready-made hero sections that you can add to your page.

A SeedProd section template

To preview any of these section templates, simply hover over the template and then click on the magnifying glass icon.

To go ahead and add this hero section to your design, just click on ‘Choose This Section.’

A SeedProd hero template

Next, you’ll want to replace the template’s stock image with your own image. To do that, simply click on the stock image to select it.

Then, in SeedProd’s left-hand menu, hover over the ‘Background Image’ preview until a trash can icon appears.

You can then go ahead and click on this icon to delete the placeholder image.

Deleting a background image in SeedProd

Next, click on ‘Use Your Own Image.’ You can then either choose an image from the WordPress media library or use a stock image.

SeedProd gives you easy access to thousands of royalty-free stock images. To take a look through SeedProd’s stock image library, click on ‘Use a Stock Image.’

In the search bar, type in a word or phrase that describes the image you are looking for and click on the ‘Search’ button.

Choosing a SeedProd stock image

SeedProd will now show all the stock images that match your search term.

When you find an image that you want to add to your design, simply give it a click.

SeedProd's stock image library

Once you’ve added an image, you are ready to replace the placeholder text.

To do this, click to select the Text block. Then in the ‘Text’ area, simply type in the text that you want to use.

Add text on top of an image using SeedProd

Some of SeedProd’s hero templates have extra content, such as call-to-action buttons.

Want to change this content? Then simply click to select the block and then make your changes in SeedProd’s left-hand menu.

Editing your SeedProd text

Another option is to delete the block from the hero template.

To do this, simply click to select the block and then click on the trash can icon.

Deleting SeedProd sections and blocks

When you are happy with your page design, you can click on the ‘Save’ button.

From here, you can choose to publish the page or save it as a template.

Publishing a SeedProd design

For more details on creating custom page layouts with SeedProd, you can see our guide on how to create a landing page in WordPress.

We hope this article helped you learn how to add text on top of an image in WordPress. You may also want to see our guide on how to bulk edit featured images and our expert picks for the best web design software.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

5 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      For what it sounds like you’re wanting, you would want to use method 2 and add a link to that block.

      Admin

  2. Trish says

    Hi Editorial Staff,

    Am a bit disappointed with the WordPress Cover Block in that the text overlay is NOT responsive in Mobile view, sadly, making the text totally unreadable.

    Thought you should know of this issue.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.