DocsONavConfiguration Reference
Configuration

Configuration Reference

ONavorravo.com/docs/onav/configuration

Configuration Reference

All ONav settings are stored in the WordPress option onav_config as a serialised array. Retrieve programmatically:

php$config = ONAV_Config::get();
// Returns: full config array merged with style defaults

// Save a config change
ONAV_Config::save( $config );

Top-Level Config Keys

php$config = [
    'brand'    => [...],   // logo, site name
    'primary'  => [...],   // main nav (style, items, appearance, behaviour)
    'topbar_v2'=> [...],   // announcement bar
    'footer'   => [...],   // footer columns
    'shape'    => [...],   // global border-radius settings
];

Brand Config

php$config['brand'] = [
    'logo_url'    => 'https://....',   // image URL
    'logo_width'  => 120,              // px
    'logo_height' => 40,
    'site_name'   => 'My Site',
    'show_name'   => false,            // show text name alongside logo
];

Appearance Config (primary nav)

php$config['primary']['appearance'] = [
    'style'        => 'default',     // default|aurora|penelope|iconic|northwind|atelier
    'bg'           => '#0a0a0a',
    'text_color'   => '#f5f1e8',
    'link_color'   => '#f5f1e8',
    'link_hover'   => '#ff3d00',
    'accent'       => '#ff3d00',
    'border_color' => 'rgba(255,255,255,0.1)',
];

Behaviour Config

php$config['primary']['behaviour'] = [
    'sticky'          => true,
    'hide_on_scroll'  => true,    // hides when scrolling down, reveals on up
    'transparent_top' => false,   // transparent until page is scrolled
    'scroll_offset'   => 80,      // px before transparency/sticky activates
];
Configuration Reference — ONav Docs — Orravo