Support » Themes and Templates » [Theme: Colorway] Removing Horizontal Menu from Front Page Only

  • Hello Everyone,

    I’m trying to remove the wordpress Horizontal menu from the homepage only, I want it to be visible on the other pages.

    However, my code doesn’t seem to work.
    The header looks like this:

    <!--Start MenuBar-->
                    <div class="menu-bar">
                        <div id="MainNav">
                            <a href="#" class="mobile_nav closed"><?php _e('Pages Navigation Menu','colorway'); ?><span></span></a>
                            <?php inkthemes_nav(); ?>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <!--End MenuBar-->
                </div>
                <div class="clear"></div>
                <!--End Header Grid-->

    I know I have to do something with
    <?phpif ( is_home() ) { // This is a homepage} else { // This is not a homepage}?>

    but I can’t get it to work.

    This is the site: http://nuhp.ruhosting.nl/soeb/

    Any help is appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Andrew Nevins

    (@anevins)

    Do you have a Child Theme?

    No, I checked it out and I don’t think I use a child theme.
    I’m hoping to get this to work. If it’s possible, then it would be a good idea to create a child theme. The site is empty so it’s not a problem if something goes wrong.

    Moderator Andrew Nevins

    (@anevins)

    Make a child theme then copy your header.php file into your Child Theme directory.

    In your Child Theme header.php file, try using this;

    <!--Start MenuBar-->
    <?php
    if ( !is_home() ) {
    ?>
       <div class="menu-bar">
                        <div id="MainNav">
                            <a href="#" class="mobile_nav closed"><?php _e('Pages Navigation Menu','colorway'); ?><span></span></a>
                            <?php inkthemes_nav(); ?>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <!--End MenuBar-->
    <?php
    }
    ?>
                </div>
                <div class="clear"></div>
                <!--End Header Grid-->

    Thank you very much.
    I’ll try and experiment with these child themes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Theme: Colorway] Removing Horizontal Menu from Front Page Only’ is closed to new replies.