• I would like to hide the menu on the home page as i want them to click the enter button and pick where they are first and do not what them bypassing the map.

    Is there any way i can hide the menu off the blain theme on my home page.

    Please help

Viewing 8 replies - 1 through 8 (of 8 total)
  • I guess the ideal solution would be to use the conditional tag is_home() in the template file header.php (or the template file your theme is using to display the header) to tell wordpress to display the menu in every page but home.

    If you are not into theme developing, I would recomend doing it with jQuery+CSS. Just paste the following code at the end of your funcitons.php flie, is not the perfect solution, but it will work (assuming that your menu has the class .menu, otherwise I would need to see your code, or at least a link to your website, to change it by the proper CSS class):

    function hide_menu() {
    
     if (is_home()):
        echo "<script type='text/javascript'>$('.menu').css('display','none');</script>";
     endif;
    
    }
    
    add_action('wp_footer','hide_menu');

    Hope it helps!

    Thread Starter Alex Hodge

    (@alex-hodge)

    could you tell me what to do i have put the code you said at the end of functions.php but it didn’t change anything.

    Do not modify theme files – as your changes will be lost when the theme is updated. You should use a child theme if you want to modify theme files – http://codex.wordpress.org/Child_Themes

    An easier way to do this is to add this CSS – to custom CSS if the theme has it or add via a custom CSS plugin:

    .home .nav-wrapper {
       display: none;
    }

    You should also be asking this on the theme’s own forum:

    http://wordpress.org/support/theme/blain

    Try changing thes line:

    echo "<script type='text/javascript'>$('.menu').css('display','none');</script>";

    for this one:

    echo "<script type='text/javascript'>$('.nav-wrapper').css('display','none');</script>";

    @morollian – please do not advise people to modify theme files.

    Of course Is better to do a child theme (actually is the only thing that people should do), but I didn’t know that Allex wasnt using a custom theme… Anyway your aproach is much easier..

    I would keep that in mind WPyogi 😉

    Thread Starter Alex Hodge

    (@alex-hodge)

    Thanks WPyogi Worked the treat!! thank you so much!

    Thread Starter Alex Hodge

    (@alex-hodge)

    Okay another quick problem is that I’m using wordpress multisite feature and its hiding both home pages for the normal and the multisite.
    is there a way to only hide it for the normal site?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Home Menu Hide?’ is closed to new replies.