• Resolved designtrial

    (@designtrial)


    hello everyone
    Does anyone know how to remove custom menu / secondary in selected category? I add secondary menu in archive.php and the menu appears in every category. How to delete in selected category?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter designtrial

    (@designtrial)

    hello, it’s bee three days… I simplified the question to How to insert a secondary menu (custom menu) into only one category?

    thanks

    Thread Starter designtrial

    (@designtrial)

    i have two category
    cat 1 and cat 2

    cat 2 have custom menu / secondary
    cat 1 no menu

    this what I did that adapted from this link , and not working

    <div class=”kategorie”>
    <?php if (in_category(array(‘cat2’))) { ?>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’ ) ); ?>
    <?php } else { ?>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘ ‘ ) ); ?>
    <?php } ?>
    </div>

    thanks
    the result: cat 2 and cat 1 was showing another-menu-page / not a category

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to remove secondary menu from a selected category?’ is closed to new replies.