How to disable secondary menu on blog page?

Community Forums Forums Design Tips and Tricks How to disable secondary menu on blog page?

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  kriskl 1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8360

    kriskl
    Participant
    Post count: 36

    hi,

    I am trying enterprise theme with main and sub menu.

    and as the default I have set to show 2 menus,

    however, on the front page, (blog page with widgets) I would like to have   different menu than the default

    or if not possible, then disable secondary menu on the blog page completely,.

     

    is it possible? I can’t see any options..

    thanks

    kris

     

    #8366

    Susan
    Moderator
    Post count: 7369

    Try the Genesis Simple Menus plugin – that will allow you to assign the secondary menu on a page or post basis…

    http://www.studiopress.com/plugins/simple-menus


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #8368

    kriskl
    Participant
    Post count: 36

    Hi Susan,

    Thanks for quick reply,

    there is no option to edit  ”blog page”

    I mean,  in WP Settings, > Reading,

    Front page displays is set to  display: Your latest posts

     

     

    #8369

    Doak Heggeness
    Participant
    Post count: 140

    You might try using a conditional statement. Since your blog is your front page you can put the following in the functions,php file,


    function kr_remove subnav () {
    if ( is_home() ) {
    // Removes sub nav after the header
    remove_action('genesis_after_header', 'genesis_do_subnav');
    }
    }


    Doak Heggeness, WordPress Development | Website

    #8372

    kriskl
    Participant
    Post count: 36

    Thank you Doak for the tip.

    I did copy your code in the functions file, however

    as I am not good with coding,, there is a syntax error,

    Parse error: syntax error, unexpected T_STRING, expecting ‘(‘

     

    #8379

    kriskl
    Participant
    Post count: 36

    Ok, i think I removed the syntax error (missing underline)

    was it supposed to be: function kr_remove_subnav

     

    so, no error, but the subnav is still visible :(

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.