If you want to Add Banner areas in WordPress without breaking your layout, this guide walks you through several safe methods you can use in minutes. You will use built in theme options, widgets, plugins, and a simple code snippet, so you always keep control of how your banner looks and where it appears.
By the end of this tutorial, you will be able to place a promotion, announcement, or hero banner in your header, inside your content, or across the entire site. The steps work whether you use the Classic Editor or the block editor and fit well with popular themes such as Jannah.
What You Need to Add Banner in WordPress
- A working WordPress site with administrator access.
- Either the Classic Editor or the block editor installed and active.
- A prepared banner image (JPG or PNG), ideally at least 1200px wide.
- Basic idea of where you want your banner to appear on the page.
- A recent site backup before changing theme files or installing new plugins.
Step 1: Decide Where to Add Banner in WordPress
Before you add any code or plugins, decide exactly where your Add Banner area will live. Clear placement makes the rest of the setup faster and avoids cluttered layouts.
- Log in to your WordPress dashboard by visiting yourdomain.com/wp-admin and entering your username and password.
- Open your homepage in another browser tab and scroll slowly from top to bottom.
- Note the main sections such as header, navigation menu, hero area, content, sidebar, and footer.
- Decide whether your banner should appear in the header, above the first heading, inside the content, or as a slim bar at the very top.
- Write down which pages need the banner, for example homepage only, all posts, or shop pages.
To verify this step, confirm you have a short list of banner locations written down. You should now know if you need a sitewide banner, a page specific banner, or both.
Step 2: Add Banner to Header Using Theme Options
Most modern themes, including Jannah, offer header or advertisement areas where you can Add Banner images or HTML. This is often the cleanest method for a sitewide or homepage banner.
- In the WordPress dashboard, navigate to Appearance » Customize.
- In the Customizer sidebar, look for sections named Header, Top Bar, Ad Settings, or Banner, then click the closest match.
- Find a setting that accepts an image upload, custom HTML, or a shortcode for the header or top of the site.
- Click Select image or Upload, choose your banner file from your computer or media library, and confirm.
- If available, add a Link URL so visitors can click through to a landing page.
- Adjust options such as alignment, background color, or visibility on desktop and mobile.
- Click Publish in the Customizer to save your changes.
To verify, open your homepage in a private or incognito window and refresh until you clearly see the banner appear in the header area without overlapping your logo or navigation.
Step 3: Add Banner Inside a Page or Post
If you only want to Add Banner content on specific pages or blog posts, place the banner directly inside the content area using either the block editor or the Classic Editor.
- In the dashboard, go to Pages » All Pages or Posts » All Posts and click Edit under the page or post you want to update.
- If you use the block editor, click where you want the banner, then click the + icon and choose the Image or Cover block.
- Click Upload to add a new banner image or Media Library to reuse an existing one.
- With the image selected, use the sidebar settings to add an Alt text description and set Link to Custom URL, then paste your destination link.
- If you use the Classic Editor, place the cursor at the top of the content, click Add Media, upload or select your banner, choose a link URL, then click Insert into post.
- Click Update or Publish to save your changes.
To verify, view the updated page in a new tab and confirm the banner appears exactly where you placed it, with the link opening the correct page when clicked.
Step 4: Use a Plugin to Add Sitewide Notification Banner
If you want a slim bar across the very top of every page for announcements, deals, or emergency notices, the easiest option is a lightweight notification bar plugin.
- In the dashboard, navigate to Plugins » Add New.
- In the search field, type notification bar or announcement banner and press Enter.
- Review the top plugins with good ratings and recent updates, then click Install Now on your preferred option.
- After installation, click Activate.
- Look for a new menu item in the sidebar, such as Notification Bar or under Settings, and click it.
- Enter your banner text, add a button or link URL, choose colors that match your theme, and set display rules (homepage only, entire site, logged in users, etc.).
- Save or publish the banner within the plugin settings.
You can browse the official WordPress.org plugin directory to compare notification bar plugins and pick one that balances features and speed.
To verify, open several pages on your site in a private window and confirm the bar appears where you expect, on the correct pages, and behaves well on mobile screens.
Step 5: Add Banner with Widgets or Shortcodes
If your theme registers widget areas in the header or above content, you can Add Banner content using an Image or Custom HTML widget. Many banner and ad plugins also provide shortcodes that work well in these areas.
- In the dashboard, go to Appearance » Widgets. In some themes, this is inside Appearance » Customize under Widgets.
- Look for widget areas named Header, Top Bar, Below Header, or similar.
- Drag an Image widget or Custom HTML widget into the desired header area.
- If you selected Image, click Add Image, upload or select your banner, set alignment, and add a link URL.
- If you selected Custom HTML, paste the HTML or shortcode provided by your banner or ad plugin and click Save.
- Click Update or save changes if your theme shows a Publish button.
To verify, refresh the frontend and confirm the widget based banner appears only in the areas you configured, without pushing important content too far down the page.
Quick Comparison of Add Banner Methods in WordPress
Use this table to quickly choose the best way to Add Banner content based on where you want it to appear and how much control you need.
| Method | Where You Use It | Main Purpose |
|---|---|---|
| Add Banner with Theme Header Options | WordPress dashboard » Appearance » Customize » Header / Banner / Ads | Create a sitewide banner in the header or top area using built in theme settings without custom code. |
| Add Banner Inside Page or Post | Block Editor or Classic Editor » Edit Page/Post » Insert Image or Cover | Show a banner only on selected pages or posts by inserting it directly into the content area. |
| Notification Bar / Banner Plugin | Plugins » Add New » Search for “notification bar” | Display a sticky top bar banner across the site for announcements, sales, or urgent messages. |
| Add Banner with Widgets or Shortcodes | Appearance » Widgets (or Customize » Widgets) » Header / Top Bar area | Place banner images or plugin shortcodes into header or above content widget areas for flexible layouts. |
| Add Banner with Custom Code Snippet | Code Snippets plugin or child theme functions.php | Inject a fully custom banner near the top of the page using PHP and CSS for maximum control. |
Step 6: Add Banner with a Simple Code Snippet
For full control over markup and placement, you can Add Banner output with a small PHP function hooked near the top of the page. This method is more technical but very flexible.
- Install a safe snippets plugin such as Code Snippets, or create a child theme if you are comfortable with theme development.
- In your snippets plugin, click Add New and give the snippet a name like Top Banner.
- Paste the following PHP code into the snippet editor:
function wph_add_top_banner() {
?>
<div class="wph-top-banner">
<a href="https://example.com/offer">
<img src="https://example.com/path/to/banner.jpg" alt="Special Offer Banner" />
</a>
</div>
<?php
}
add_action( 'wp_body_open', 'wph_add_top_banner' );
- Replace the href and src values with your actual landing page URL and banner image URL from the media library.
- Set the snippet to run on the frontend only and save or activate it.
- Next, add a bit of CSS to style the banner. Go to Appearance » Customize and click Additional CSS.
.wph-top-banner {
text-align: center;
padding: 10px 0;
}
.wph-top-banner img {
max-width: 100%;
height: auto;
}
- Paste the CSS into the Additional CSS box and click Publish.
To verify, open your site in a new browser window, view the source or use the inspector, and confirm the wph-top-banner markup loads right after the opening <body> tag and looks correct on desktop and mobile.
Conclusion: You Are Ready to Add Banner in WordPress
You have now learned multiple ways to Add Banner content in WordPress without guessing or risking your design. You can place banners through theme header options, inside individual posts or pages, with flexible widget areas, via notification bar plugins, or with a custom code snippet for maximum control.
As a next step, refine your banner design and copy so it matches your brand and supports your goals. If you focus banners on key pages like the homepage or primary landing pages, and keep them optimized for speed, they can boost clicks and conversions without slowing down your site.
Further Reading for WordPress Banner Design
- How to design a website with WordPress
- WordPress migration blog guide
- Beginner guide to WordPress speed optimization
- How to add google search console to WordPress




