≡ Menu

Thesis 1.x – Full-Width Nav

I’m mainly posting this so I have somewhere to reference people rather than copying and pasting the code every time. Originally developed by Kristarella

The following adds a full-width nav below the header area:

function full_width_nav() { ?>
<div id="nav_area" class="full_width">
    <div class="page">
        <?php thesis_nav_menu(); ?>
    </div>
</div>
<?
}
remove_action('thesis_hook_before_header', 'thesis_nav_menu'); // Remove top nav menu
add_action('thesis_hook_before_content_area', 'full_width_nav'); // Add full width nav below header

If you want the full-width nav to be above the header use the following add_action instead:

add_action('thesis_hook_before_html', 'full_width_nav'); // Add full width nav above header

Comments on this entry are closed.