WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove or deactivate Drop Down Menu? (3 posts)

  1. AlexSandager
    Member
    Posted 1 year ago #

    How can I remove or deactivate the drop down menu?

    Her is the code in header.php

    <body <?php body_class(); ?> >
    
          <div id ="header">
          <div id ="header-content">
    		<!-- Site Titele and Description Goes Here -->
            <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img class="site-logo" src="<?php header_image(); ?>"/></a>
    
            <h1 class="site-title-hidden"><?php bloginfo( 'name' ); ?></h1>
    		<h2 class="site-title-hidden"><?php bloginfo( 'description' ); ?></h2>
    
            <!-- Site Main Menu Goes Here -->
            <nav id="d5businessline-main-menu">
            <?php if ( has_nav_menu( 'menu' ) )  : wp_nav_menu(); else : ?>
            <?php wp_page_menu(); ?>
            <?php endif; ?>
            </nav>
    
          </div><!-- header-content -->
          </div><!-- header -->
          <div id="container">
  2. esmi
    Forum Moderator
    Posted 1 year ago #

    What theme are you using? Where did you download it from?

  3. AlexSandager
    Member
    Posted 1 year ago #

    I found a solution.

    just add: opacity:0.0; below the sub-menu in CSS, then it gets invisible ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic