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 2 years, 11 months ago.

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



    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..






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

    Susan @ One Happy Studio I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts



    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




    Doak Heggeness

    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



    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 ‘(‘




    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.