govfresh / govpress

The WordPress theme for government
https://wordpress.org/themes/govpress/
GNU General Public License v2.0
135 stars 51 forks source link

Can we display incon menu on posts? #71

Closed shakirahmed100 closed 8 years ago

shakirahmed100 commented 10 years ago

Can we display incon menu on posts? We know normally incon menu shows on pages (when we select home template). But there is no option to select home template while posting articles as post. So, is there any way we can display incon menu on posts?

Thanks

lukefretwell commented 10 years ago

You mean you want the icon menu to display below the header on post pages?

@devinsays not sure best solution for this. @shakirahmed100 might be best to hardcode the post template with the icon menu code.

devinsays commented 8 years ago

You can put the icon menu on any template, but it would require you to edit that template. If you want the menu on single.php, you could add this code:

<?php if ( has_nav_menu( 'icon' ) ) : ?>
    <div id="menu-icon" class="clear">
        <div class="col-width">
            <?php
            wp_nav_menu( array(
                'theme_location' => 'icon',
                'depth' => '1',
                'container_class' => 'menu-icon-container'
            ) ); ?>
        </div>
    </div>
<?php endif; // Icon Menu ?>

Right after the header call.