Customize the header and navigation bar of your website.
The header contains the site logo, main navigation, search and other typical header elements. It is visible on every page of your website. Optionally, the header can be replaced by a mobile header on smaller devices.
The following settings can be found in the Layout → Header panel of YOOtheme Pro.
Select the layout for the logo, navbar and header positions. Some layouts can split or push items of a position which are shown as ellipsis.
Position | Color | Description |
---|---|---|
Logo | Black | Displays the logo as well as the logo widget area |
Navbar | Green | Displays the navbar menu location and widget area |
Header | Purple | Displays the header menu location and widget area |
Learn how to publish menus and widgets in the menus and widgets documentation.
The logo as well as the navbar and header positions are displayed side by side, from left to right with different alignments.
The logo as well as the navbar and header positions are displayed above each other and are centered horizontally. In the Stacked Center C layout the header position is split and aligned to the left and right while the logo is placed in the middle. In both Stacked Center Split layouts the menu items of the navbar are split, and the logo is placed in the middle.
The logo and the header position are displayed on the left and right while the navbar is shown below.
The Stacked Center C and both Stacked Center Split layouts have an option to set the number of items after which their items are split. For example, this may be needed if menu items have different length or additional widgets are published in the area.
The Stacked Left layout has an option to push widgets published in the navbar area to the right of the layout. Just set the number of items after which the following items are pushed to the right.
Set the maximum content width for the header and navbar. Choose between the Default, Small, Large and X-Large to set a fixed max width. The Expand option expands the header to the full width of the viewport keeping a small padding to the left and right. Optionally, the logo padding can be removed for layouts where logo is positioned on the left, for example, for logos with colored backgrounds.
There are three options available to control the navbar position and its behavior.
Option | Description |
---|---|
Static | The navbar will move out of the viewport on scrolling. |
Sticky | The navbar will stick at the top of the viewport on scrolling. |
Sticky on scroll up | The navbar will move out of the viewport when scrolling down, and it will become sticky on scrolling up. |
Note If a transparent header is set on a section, the Sticky navbar will show up once you have scrolled bellow the hero section, and it will hide when the hero section comes into the viewport.
Additionally, choose between the default and primary navbar style.
Make the header transparent and overlay the background of the site on all pages and even when it's sticky. The header will automatically change its text color depending on its background. Optionally, color navbar parts separately and blend the navbar text color with the page content.
Align the dropdown to the Left, Right or Center. By default, the dropdown is aligned to the navbar item. Optionally, align it to the whole navbar. This may be useful for large dropdowns.
There are additional options for the dropdown.
Option | Description |
---|---|
Enable Dropbar | Optionally show the dropdowns in a full-width section called dropbar. |
Show parent icon | Show a small icon to indicate the navbar item has a dropdown. |
Click mode | Navbar items which contain only text (without a link) can show the dropdown on click instead of hover. Learn how to create a text menu item in WordPress. |
Note Each menu item has further dropdown options to set the number of columns, its width and alignment, and to create mega menu dropdowns with the YOOtheme Pro page builder.
In addition to the header layout, YOOtheme Pro can display menus and widgets published in the dialog widget area in a dropbar, offcanvas sidebar or modal window. The dialog is opened by clicking a toggle icon which automatically appears in the header.
Select the layout for the dialog
position. Items which can be pushed are shown as ellipsis.
The dropbar stretches to the full width and height of the viewport but does not overlay the navbar. Navbar items remain clickable when the dropbar is open. Items are displayed at the top or in the center of the dropbar.
The offcanvas sidebar overlays the navbar. Items are displayed at the top or in the center of the offcanvas sidebar.
The modal window overlays the navbar. Items are displayed at the top or in the center of the modal window.
All layouts have an additional option to center their content horizontally.
Dialog layouts have an option to push widgets published in the dialog area to the bottom of the layout. Just set the number of items after which the following items are pushed to the bottom.
Select the position for the dialog toggle. Optionally, show the Menu text next to the icon.
There are additional options for the Dropbar layouts.
Option | Description |
---|---|
Fade | The dropbar fades in. |
Slide Top | The dropbar slides in from the top revealing its content. |
Slide Left | The dropbar and its content slide in from the left. |
Slide Right | The dropbar and its content slide in from the right. |
If the dropbar slides in from the right or left, optionally set the dropbar width.
There are additional options for the Offcanvas layouts.
Option | Description |
---|---|
Slide | The offcanvas bar slides on top of the page content. |
Reveal | The page content moves out of the viewport revealing the offcanvas bar underneath it. |
Push | The offcanvas bar pushes the page content out of the viewport. |
Additionally, display an overlay to prevent navigating and scrolling the page when the offcanvas sidebar is open. Define if the offcanvas sidebar opens on the left or right.
There is an additional option for the Modal layouts to define the width of the modal content.
YOOtheme Pro allows publishing the search without having to create a WordPress widget. Display the search in the start or end of the navbar
, header
or dialog
areas or at the end of the logo
area. Alternatively, publish a search widget on any available theme area.
Choose between the Default and Modal search style. The Modal style only displays an icon. Clicking the icon will open a fullscreen modal with the search input box. This style is not available in the dialog
widget area.
Display the social icons in the start or end of the toolbar-left
, toolbar-right
, navbar
, header
or dialog
areas or at the end of the logo
area.
Click the Edit Items button to add social icons. Each item has a Link, Icon and Image fields. If available, a corresponding UIkit brand icon will be displayed automatically. Links to Google Maps, email addresses and phone numbers, like mailto:info@example.com
or tel:+491570156
, are also supported. Alternatively, pick a different icon or an SVG image.
Define if the links should Open in a new window and whether to Display icons as buttons. Optionally, make SVG images stylable with CSS.