How to Have 2 Lines of Text in WordPress Header
In WordPress, the header is often the first thing a visitor sees, which makes it a critical piece of your site’s design. Most themes only give you room for a single line of text there, but sometimes you want more – a tagline under your site name, a business slogan, or extra context. Here’s how to get two lines of text into your WordPress header cleanly.
Why Use Two Lines of Text in Your Header?
A second line in your header can help in a few ways:
- Enhanced Clarity: Separating your site’s name from a slogan or additional information makes it easier for visitors to understand your brand’s message.
- Better Design Flexibility: It gives you more room for distinct typography and layout choices that help your header stand out.
- Improved SEO: A well-structured header with relevant text adds context about your site’s content.
Also Read: How to Restore WordPress Category
Steps to Add 2 Lines of Text to a WordPress Header
Step 1: Choose the Right Theme
Before you start, make sure your WordPress theme actually supports customizing the header area. Some themes have built-in options to add multiple lines of text, while others need custom coding.
- Check Theme Documentation: Review your theme’s documentation or settings panel to see if it offers an option to add multiple lines of text in the header.
- Consider a Theme Upgrade: If your current theme doesn’t support this, you might need a theme that does. Astra, OceanWP, and Neve are all known for flexible header customization.
Step 2: Using the Customizer
For many WordPress themes, the built-in Customizer is the easiest route:
- Access the Customizer: Go to your WordPress dashboard and navigate to
Appearance > Customize. - Find the Header Section: Look for
HeaderorSite Identity. The exact name varies by theme. - Edit Header Text: If your theme supports multiple lines, you’ll see fields for your main header text and a tagline or secondary line.
- Save Changes: Click
Publishto save.
Step 3: Customizing the Header with Widgets
If your theme supports widgets in the header area, you can use that instead:
- Go to Widgets: Navigate to
Appearance > Widgetsin your WordPress dashboard. - Select the Header Widget Area: Find the widget area designated for the header.
- Add a Text Widget: Drag a
Textwidget into the header widget area and enter HTML to format your text into two lines, for example:<div class="header-text"> <p>Your Main Header Text</p> <p>Your Secondary Line of Text</p> </div> - Save Changes: Click
Saveto apply.
Step 4: Custom CSS for Styling
If the Customizer or widgets don’t give you enough control, Custom CSS will:
- Access Additional CSS: Go to
Appearance > Customizeand selectAdditional CSS. - Add Custom CSS: Enter CSS to style your header text, for example:
.site-header .site-title { font-size: 24px; /* Adjust font size as needed */ line-height: 1.2; /* Adjust line height for spacing */ } .site-header .site-tagline { font-size: 16px; /* Adjust font size for tagline */ line-height: 1.4; /* Adjust line height for tagline */ }Replace
.site-header .site-titleand.site-header .site-taglinewith the actual class names your theme uses – browser developer tools will help you find them. - Publish Changes: Click
Publishto apply your custom CSS.
Step 5: Editing Theme Files (Advanced)
For more advanced users, you can edit theme files directly. This takes a basic understanding of PHP and HTML:
- Access Theme Editor: Go to
Appearance > Theme Editorand select theheader.phpfile. - Modify Header Code: Locate the code that outputs the header text and add HTML to create two lines, for example:
<div class="header-text"> <h1><?php bloginfo('name'); ?></h1> <p><?php bloginfo('description'); ?></p> </div> - Save Changes: Click
Update Fileto save.
Note: Editing theme files directly is risky and can break your site if not done correctly. Always back up your site before making changes.
Getting a Clean Two-Line Header
Adding two lines of text to your WordPress header is a small change that can meaningfully improve your site’s design and clarity. Whichever method fits you – Customizer, widgets, custom CSS, or theme file edits – choosing the right theme and applying thoughtful design principles will get you a header that communicates your brand clearly and holds up visually.
If you run into trouble, your theme’s own support forum or a WordPress developer is usually the fastest way to sort it out.
Interesting Reads:
How to Change the Background Color of Your Header in WordPress

