How To Build A Custom Header

03/08/2020

Brand new in Avada 7.0 is the ability to create fully Custom Headers on your Avada website, using the Header Builder in Layouts, and the full design power of Avada Builder.

A Custom Header can be global, meaning it will display on every page of the site, or it can be conditional, and just display on certain pages, categories, or custom post types etc. In that way, you can even have multiple headers, for different sections of your site.

Read on to learn how to build a Custom Header in Avada, and watch the video below for a visual overview.

For privacy reasons YouTube needs your permission to be loaded. For more details, please see our Privacy Policy.
I Accept

The Layouts Interface

A Custom Header is technically a Layout Section that you add to a Layout. See Introducing Layouts in Avada for a general overview of Layouts, and Understanding Layout and Layout Sections to understand the difference between the two parts of the a Layout, but for now, let’s now look at creating a Custom Header Layout Section.

You can find Layouts at Avada > Layouts. This interface is where you both create and manage your Layouts and Layout Sections in Avada. Initially, there is just a Global Layout, and by default this is empty, with no attached Layout Sections, as can be seen below.

Avada Layouts

Creating A Custom Layout Section

You can create a Layout Section for your Custom Header in one of two ways. You can head to the Layout Section Builder page from the Avada Dashboard (Layouts > Layout Sections), and create one from there, as seen below.

Create New Layout Section

Alternatively, you can create a Custom Layout Section directly from the Layout you wish to add it to. For a Layout Section to appear on your site, it has to be added to a Layout. And as mentioned, there is initially only a Global Layout. So, if you wanted to create a Global Custom Header, you would just add it to this Layout. But if you wanted a conditional Custom Header, you would need to create a new Layout, assign a Custom Header Layout Section to it, and then add conditions to it to get the Layout to display according to those conditions.

For this example, let’s assume we are going to make a Global Custom Header, and so the easiest method here is this one. As seen below, we can simply click on Select Header on the Global Layout, and on the New Section tab, we just add a Section Name; for example, Global Header, and then click on Create New Section.

Add New Global Header Layout Section

This creates and connects the Layout Section to the Layout, but at this point, it is still empty. If we mouse over the Header Layout Section on the Layout, as shown below, we can then click on the edit icon to design and build our Layout Section.

Edit New Global Header Layout Section

Editing a Custom Layout Section

When you first edit a new Layout Section, you come to the default WordPress Editor. From here, you can choose to use Avada Builder, or Avada Live. It is here we create our Custom Layout Sections. Please refer to Creating Layout Section Content for more information on this, but in short, you can build anything you want here.

Anything you can build in the Avada Builder can constitute the content of your Layout Sections. You can have multiple columns, background images, dynamic data… anything. The freedom this gives is enormous. The Layout Section is literally that – a section where can create the Layout. The content itself comes from the Builder, and what you can do is only limited by your imagination.

IMPORTANT NOTE: It’s important to note that when you have a Header Layout Section attached to a Global Layout, the Header Options in the Theme Options will not be available. Everything in the Header is controlled in the Layout Section by the content options and the Layout Section Options, the equivalent of the Page Options in Layout Sections.

Elements of a Custom Header

For a Custom Header, one essential element would likely be the new Menu Element. This is the only specifically new Design Element made for the Header Builder, and has a huge range of features to configure and display your menu in multiple ways.

The Image Element is another Element that will likely be in most Header designs, and this has been expanded, so you can use it to place your logo into your Header Layout as either an image or Dynamic Data. And remember, that with the Header Builder, you can use any Design Elements to complete your design, so depending on your design you might also use any number of other Elements.

For a Header Layout, there are also options in the Container and Column Elements you can use, such as Container Background Options, Sticky Containers, Container Offset, Responsive Options Sets, Sticky Visibility options and many more. Please see the Container and Column Element docs for full details on their new features. The choice and the design are completely up to you, and the entire design flexibility of Avada Builder is at your fingertips.

Adding A Header Demo From the Library

Avada also offers an easy way to get started with a Custom Header. This is by adding a Header Demo from the Avada Library. Here, we have added a range of Custom Headers, which you can add to the Layout Section to then customize, to meet your own requirements. There are the 7 original Headers that you know from the Global Options, and a further 9 new Header designs. This gives you a total of 16 different Header designs you can import into your Layout Section, as a starting point for your own Custom Header.

For full details of these designs, please check out the Prebuilt Headers for Layouts doc, but adding them to your Layout is very easy. When you first edit your newly created Header Layout Section in Avada Builder, just click on the Pre-built Header link on the Starter Page, and the Library will open on the Header Demos tab, with all the headers ready to import.

Header builder - Add Pre-built Header

Example Of A Custom Header

As mentioned, there are almost no limits for what you can create using the Header Builder. As an example, see below for the Header Layout design of the Pet Supplies Website. As you can see, it is a multi-container layout, using many of the new features available in Avada 7, including the Menu Element, a dynamic logo, Custom Column widths, a Sticky middle Container with additional Elements that only have Sticky Visibility, as well as responsive changes in Tablet and Mobile layouts.

The top Container holds the logo, search bar, some text, and the WooCommerce Cart icons. The middle container holds the main menu, which itself has sub-menus and a mega menu, and a logo and another two menus with visibility options applied, so that they only show when the Container becomes Sticky. The last Container just has a tiled background image and three text blocks with icons and text. The Header also makes good use of the new Responsive Option Sets feature, displaying a different header layout for both Tablet and mobile.

Make sure to watch the How To Create A Custom Header video, embedded at the top of the page, to see further details of this truly custom header.

Pet Supplies Custom Header Layout

See below for an example of what this Header looks like in Desktop view, but to truly get a good feeling for all that’s going on in this Custom Header, it must be experienced on the live site, which you can access here.

Pet Supplies Custom Header

Setting Conditions For A Conditional Layout

With a Global Layout, there are no Conditions. This is because it’s global, and any Layout Sections added to it will be used on every page. If, however, you wanted a Custom Header just on some pages of your site, you’d need to add a Header Layout Section to a Conditional Layout.

With any Conditional Layout, you need to set the conditions of the layout. This is best done last, because as soon as you set the conditions, the layout is active, and if you do this after first creating the Layout Section, but before editing it, the pages displayed that fit the conditions would be empty in those sections.

To add a condition, or conditions, simply mouse over the bottom of the Layout, and choose Add A Condition. This brings up the Layout Conditions Dialog. Please see Understanding Conditional Layouts for more information on Conditional Layouts.

In the example of the Pet Supplies Website, there is also a Conditional Custom Header, which only displays on one page, the Alternate Home Page. See below for the Conditions set to achieve that, and further below for an example of what that Header looks like on the Alternative Home page.

Pet Supplies Alternate Header Conditions
Pet Supplies Alternate Header

Conclusion

With the addition of a Header Builder to Layouts, creating a Custom Header is not only now a reality, but more like an unlimited possibility. Not only can you use the full power of Avada Builder to create almost any Header you can conceive of, but thanks to the power of Conditional Layouts, you can also show, or hide, the Header on any page, category, custom post type, or any combination of conditions you can think of.

Layouts in Avada is a game changer in the true sense of the word. It enables such freedom of design, and gives such flexibility in deployment, that building Headers will simply never be the same again.