How To Add Top Bar & Search Bar in Astra Theme? (Video Included)

Do you want to learn how to add a top and search bar in Astra theme? You are in the right place to get detailed guidelines to include these elements in your site header. 

It is good that you are using the Astra theme to build your business site and want to design a magnificent header to attract a massive audience.

Before diving into the Astra theme tutorial, let me consolidate the benefits of making an attractive header for your professional WordPress website.

Disclosure: We get a commission when you buy a product via our affiliate link at no additional cost.

Why Design an Attractive Site Header?

The Header is the first element that your visitors see. It should be streamlined so they can clearly understand your business or the service you offer.

Additionally, an engaging website header is crucial in building a positive impression and can help increase sales. Moreover, it will reinforce your brand identity and improve user navigation.

Out of all, it is an ideal place to include your prominent Call-To-Action or contact details that will encourage your audience to take action immediately.

So, how do you add a top bar and search bar in WordPress? Let’s get into the topic!

Steps To Add A Top Bar Menu In Astra Theme

Let’s see how to include the Astra WordPress theme top bar now!

Add Top Bar & Search Bar In Astra Theme

Step 1: Log in to your WordPress Dashboard > Appearance > Customize

Step 2: Go to the Astra Header Builder section. For your understanding, I’m adding the elements to the Astra top bar. I include “HTML” and a “Button” in the middle of the Header section. Look at the image below! 

header-builder-astra-add-elements

After including these elements, let’s start setting the preferences. Here is an image for your reference. 

header-element-settings

Step 3: To make the design changes, click the Header area settings (Marked in the following image)

astra-theme-header-area-settings

Step 4: Click the icon to access the settings on the left, as shown here. 

customize-astra-theme-header-general-settings

Step 5: In the General header setting, you can change the height of the top bar section. Under the Design tab, you will get the background color settings. Here is the screenshot for your understanding.  

astra-design-settings-background-color-change

Step 6: Now, let’s customize the HTML section. Just click the section as shown in the image below.

design-top-bar-astra-theme

By selecting, you will get the settings on your left. Now, you can add the text for your Top bar. Check the picture below! 

html-setting-preferences-top-bar-astra

Step 7: After entering the text, modify the text color through the design section as shown here.

top-bar-astra-design-color-settings

Step 8: Next, let me customize the button section. To do so, you need to choose that section like the image below.

top-bar-button-settings-astra

After selecting, you will get the following settings on your left. 

general-button-settings-add-text-link

1. Button text – Enter your preferred text for the button on the Top bar

2. Button link – Insert the target URL

3. Link rel – Fix the nature of the link as nofollow or noopener or noreferrer

4. Button Size – Set the button size as small, medium, large, or extra large

After including all these details, you may change the design with the help of the Design section, like

astra-top-bar-design-settings-change-background

Pick your desired color, Border width, and radius for your Astra top bar button.

Let’s look at the output! So, we

astra-theme-top-bar-example

Steps To Add Search Widget In Astra Theme

Check the simple steps to include search feature in Astra theme!

Step 1: Log in to your WordPress Dashboard > Appearance > Customize section.

Step 2: Go to the “Header Builder” section, where you can add a search section; refer to the image below.

choose-search-element-astra-theme

Step 3: Select that element after including the search section and start your Astra theme customizations. I will do some settings for your understanding. 

search-bar-customization-astra-theme

As you can see above, it is likely that you will pick your Search Width and Height by choosing the “Search Box” option under the Search Style section.  

Step 4: You may also enable this live search option to get live article suggestions when your audience searches for something on your site. 

live-search-settings-astra

This is the output. You can see the Astra theme search bar placement, refer to the image below!  

live-search-bar-output

Step 5: If you want, you can customize the search box design. Check the following settings, 

customize-search-box-astra-theme

Here, you can change the search box icon color, its background & border color. Also, adjust the radius and width of the Astra search box border. The following is the example image. 

astra-theme-search-bar

Video Tutorial To Customize Astra Header

For your easy understanding, I have created a video tutorial to add a top and search bar to the Astra theme. Watch now!

Frequently Asked Questions

Is it possible to add a top bar in the free version of Astra?

Yes, it is possible! However, please note that customization options are limited in the free version. For advanced features, get the Astra premium copy.

Can I include a Search Icon in the Mobile menu?

Yes, you can add a search icon in the mobile menu by using either the free or the pro version.

How to show the email or phone number in the WordPress top bar?

You have to use either the “Text” or “HTML” widget to display your email or phone number in the top bar.

Wrapping Up

A well-designed site header makes navigation easy and clear for your visitors. As it is their first interaction, you can gently push them to react to your CTAs and boost conversions.

With the help of the Astra header builder options, you can create a stunning web page beginning, which will help you grab your readers’ attention.

I hope you are clear with the customization settings to add a top and search bar in the Astra theme, suitable for your site design. If you need any WordPress header customization help, leave a comment.

Why Use Pro Version To Enable Top Bar & Search Icon In Astra?

If you are using the Astra free version, consider upgrading it to its pro version for the following reasons.

FeatureWhat Free Version OffersWhat Pro Unlocks
Above Header (Top Bar Section)Settings are limited. It constrains what you can place there.Provides a dedicated Above Header module to place contact info, social icons, announcements, or a search box in that section.
Header Elements & Widget SlotsProvides some essential elements, such as a logo, primary menu, and search, but offers fewer widget, HTML & button slots.Several widget, HTML, button elements to place in the header, more options for styling and layout.
Advanced Search FeaturesBasic search icon placement is free, but with limited styles and behavior.Includes advanced search styles: live search, full-screen search, search styles, ability to customize placeholder text, and control how search behaves on mobile vs desktop.
Responsive ControlsLimited control of search or top bar layout per device (desktop/mobile).Better responsive settings! What to show/hide in mobile vs desktop, different layouts or styles per device.
Sticky & Transparent HeadersOnly basic header behavior; sticky headers and transparent headers are not available.Contains sticky header functionality (the header stays visible on scroll), a transparent header and custom behavior on scroll. 
Flexibility & CustomizationLess control over spacing, alignment, number of sections/rows in the header.Many rows (above, below, merged headers), more layout options, spacing, margins, and color customization to match your brand and design.

Other Astra Theme Tutorials

How To Add Slider In Astra Theme?

How To Include Related Posts In Astra?

How To Change Background Color In Astra Theme?

by Nirmala Santhakumar

Nirmala Santhakumar is a professional blogger, WordPress enthusiast who has been blogging since 2010. She always loves to write useful WP tips, tricks and tutorials on this active blog. Sharing her SEO knowledge is her keen interest.

Leave a Comment