How to Add Text Over an Image in Elementor (Four Different Ways)

You are currently viewing How to Add Text Over an Image in Elementor (Four Different Ways)

Text and images are key elements on your website, and it’s wise to use both. Combining them creates a more effective result than using only one.

Text over an image is a powerful option because it combines a section’s visual and textual elements. It’s more effective to show a product’s photo with written information about its benefits. 

This article will show you how to add text over images in the Elementor page builder plugin.

Why Position Text Over Images

Text and images are the two primary components of every website. Each can be effective on its own, but combining them can skyrocket your results.

Here are the main reasons to place text over images:

  • Hero slider – Many websites’ hero sections feature sliders with a call-to-action button atop a background image.
  • Emphasize critical points – Writing about a service or product isn’t always enough. An image with relevant text can deliver a clearer message.
  • Image with hotspots – This is useful for highlighting a product’s advantages. Place hotspots strategically on the image, and hovering over them will reveal relevant information.
  • Efficient design – Sometimes, placing images next to or below text wastes valuable space on your website. Placing the reader over the image is a better way to use the maximum available space.

Whether it’s for one of the reasons above or to better match your design needs, knowing how to place text over an image is beneficial.

This article presents four different methods for displaying text over an image. You can do the first two methods in the free version of Elementor, while the last two require Elementor Pro.

Let’s start with the first method using the Image widget.

Method #1: Display Text Over the Image Widget

This is my preferred method for positioning text over an image, especially when using the basic version of Elementor.

Although it requires some CSS code, it shouldn’t discourage you, since I will provide it for you.

First, click the “Edit with Elementor” button to open the visual editor screen.

Then, drag the image widget from the left sidebar to your desired section on the right.

Choose your image under the Content tab and change the Caption field to Custom. Once changed, enter the custom text you want to display over the image.

Add custom text to an image in Elementor

You can also use the Style tab to change the size and font family, as well as add a background color to the caption.

When satisfied with how it looks, navigate to the Advanced tab and assign the textOverImage class to the widget.

Add CSS class to image widget

After you make the changes, open the customization screen and go to the Additional CSS tab.

Then, paste the CSS code below and click Publish:

.textOverImage figcaption {
position: absolute;
margin: 0;
width: 100%;
top: 50%;
transform: translateY(-50%);
}
Custom CSS to position the text over image

The provided CSS will position the caption in the center of the image. You can always re-edit the widget if you want to change the font size, color, or other settings.

Assigning a class to the image widget is only necessary if you are not using Elementor Pro. However, if you have the paid version, expand the Custom CSS tab and assign the code to the selector figcaption instead.

Selector figcaption CSS Elementor

We will use the text widget with a background image in the following method.

Method #2: Text Widget with a Background Image

In our previous posts, I showed you how to set a background color or image to any page in Elementor. This method uses techniques we learned in the other article to achieve similar results.

To start, drag either the Text editor or the Heading widget to the desired section on the canvas on the right.

After entering your custom text, center it and customize its properties, such as size and style.

Elementor widget libraries

Then click the Advanced tab, expand the Background tab, and select the image to display behind the text.

For better results, set the image position to center-center, with no repeat, and set the size to cover.

Change the image background position

Then expand the Layout tab and increase the padding values until you’re satisfied.

Add padding to text

Please remember to check the mobile view to ensure the style is consistent across all devices. You may need to adjust some of the properties for a better fit.

So far, we’ve used the accessible version of Elementor to display text over an image. The next couple of methods will show you how to do it with Elementor Pro (or you can get it from us for only $4.99).

The Gallery widget is a great way to combine images and text. It’s very similar to the first method I showed you above; however, this time we don’t need to use CSS.

First, drag the Gallery widget to the canvas on the right, and select the image you want to display.

Enter your custom text as the image’s caption, and then click the Insert Gallery button.

Insert Gallery widget Elementor

The gallery widget defaults to four columns, allowing each item to occupy 25% of the entire section. Therefore, change the column number to one and the image size to full.

Gallery widget settings

Then, expand the Overlay tab and change the title field to caption. Once changed, hover the mouse cursor over the image to ensure the text is displayed.

Gallery widget show title

Next, go to the Style tab, expand the Overlay section, and enter the Hover options. Here you can change the overlay background color or remove it altogether.

Hover state of the overlay layer

Finally, expand the Content tab and style the text to fit your design expectations. Moreover, change the hover animation to none. This ensures the reader is always displayed, even when the image isn’t being hovered over.

Style the text over the image

The Portfolio and Posts widgets are similar to the Gallery widget, so you can achieve similar results by selecting either of them.

Method #4: The Hotspot Widget

The hotspot is a cool widget often used to highlight key points on a product or as a store locator indicator.

By default, the hotspot widget includes one hotspot in the middle of the image, but you can change its position and add as many as necessary.

After selecting the image, expand the Hotspot tab and change the first item’s properties.

Add hotspot over an image

Then, go to the Position tab and adjust the vertical and horizontal offset values to the correct position.

Adjust the text position over the image

You can then add additional text items to be displayed over the image and assign different values to each of them.

Image with multiple hotspots text over it

Once added, go to the Tooltip tab to change the tooltip’s position and trigger condition.

Like any other Elementor widget, you can change any aspect of the widget’s look under the Style tab.

When satisfied with the result, please save the changes and test them on the live site.

Conclusion

Showing text over images is an excellent feature every website owner should know. This article showed you how to position text over an image using Elementor in four ways.

Leave us a comment and tell us which of the methods above you used to achieve this task.

Also, make sure to subscribe to our YouTube channel and like our page on Facebook.

PluginsForWP

PluginsForWP is a website specializing in redistributing WordPress plugins and themes with a variety of knowledge about WordPress, internet marketing, and blogging.

Leave a Reply