How to Create a Clean, Responsive Heading in Elementor (Without Duplicates)

When building responsive layouts in Elementor, one of the most common challenges is handling headings that look great on desktop but awkward on mobile.

A common “quick fix” is to:

  • Duplicate headings
  • Hide one on desktop and one on mobile
  • Or inject <br> tags directly into the text

While those methods work, they aren’t ideal from a maintainability, accessibility, or SEO standpoint.

In this guide, I’ll show you a clean, professional approach that:

  • Uses one semantic heading (h1, h2, etc.)
  • Keeps the same text for all devices
  • Controls line breaks purely with CSS
  • Works perfectly with Elementor
  • Is safe for Google and screen readers

The Goal

We want this behavior for Desktop:

PLAINTEXT
Tutorials I Create. Plugins I Build. Tools I Recommend.

And for Mobile we want this behavior all using just one heading widget.

PLAINTEXT
Tutorials I Create.
Plugins I Build.
Tools I Recommend.

Step 1: Add the Heading in Elementor

Add a normal Heading widget in Elementor and use your preferred heading level (H1, H2, etc.). For the heading text, use this exact structure:

HTML
<span class="break">Tutorials I Create.</span> 
<span class="break">Plugins I Build.</span>  
<span class="break">Tools I Recommend.</span>

Important notes:

  • There are no <br> tags
  • The text is written on one line
  • Each phrase is wrapped in a <span> for layout control

This keeps the content intact while giving CSS something to work with.

Step 2: Add a Reusable CSS Class

Click the heading widget, then go to Advanced → CSS Classes.

Enter this class name: custom-heading.

This class will be applied to the widget wrapper, not the heading text itself — which is important for the CSS we’ll write next.

Step 3: Add the CSS (Global)

Now go to Appearance → Customize → Additional CSS.

Paste in the following code:

CSS
/* Desktop: keep everything on one line */
.custom-heading .elementor-heading-title .break {
  display: inline !important;
}

/* Mobile: stack each phrase on its own line */
@media (max-width: 768px) {
  .custom-heading .elementor-heading-title .break {
    display: block !important;
    width: 100%;
  }
}

Click Publish.

You’re all set!

Continue Exploring

Explore All Guides

Tools We Recommend

Recommended Tools

Shopify

Shopify is one of the most powerful all-in-one eCommerce platforms available today, designed to help anyone—from beginners to…

4.7
Updraft

UpdraftPlus Review – The Easiest Way to Back Up Your WordPress Website If you’re running a WordPress site…

4.7
Free / Pro from $70/yr (2 sites)
Zillion Designs

At manzari.com, we’ve been using Zillion Designs since 2015 as our go-to platform for logo design and brand…

4.5
From $199 (+ 20% processing fee)

Affiliate links — we may earn a commission at no extra cost to you.

About Manzari

Manzari is an independent publisher focused on WordPress, website technology, business software, and practical tech guides. Our goal is to help you choose better tools and make informed decisions with honest, transparent recommendations.

57+
In-depth WordPress guides
23+
Real tools tested & reviewed
21yr
Building with WordPress
100%
No paid placements, ever