Topbar v2
The topbar is an independent fixed bar rendered above the primary nav. Configured under $config['topbar_v2'].
Config
php$config['topbar_v2'] = [
'enabled' => true,
'height' => 36, // px, range 24–80
'bg' => '#0b0b0c',
'text_color' => 'rgba(255,255,255,0.7)',
'link_color' => 'rgba(255,255,255,0.9)',
'link_hover' => '#ffffff',
'descriptor' => 'Free shipping on orders over £50',
'hide_mobile' => true,
'oengage_order'=> 'above', // 'above' or 'below' OEngage utility bar
'items' => [
[ 'label' => 'Blog', 'url' => '/blog' ],
[ 'label' => 'Contact', 'url' => '/contact' ],
],
];
Stacking with OEngage
When OEngage (the oregister plugin's utility bar) is active, ONav detects the oe_settings option and adjusts all CSS offsets so the two bars don't overlap. Use oengage_order to choose whether the ONav topbar sits above or below the OEngage bar.
OEngage Auto-Detection
php$oe = get_option( 'oe_settings', [] );
$oe_active = is_array( $oe ) && ! empty( $oe['utility_bar_enabled'] );
When active, ONav inserts CSS to push #oe-utility-bar to the correct top offset.
