Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add search form and place hamburger icon on the right #541

Copy link
Copy link
@DeveloperAliRahi

Description

@DeveloperAliRahi
Issue body actions

Steps to reproduce the issue: You can visit appd4b.com

I need to put the humbrguer icon on the right and logo on the left. I did the following:

`



    <a class="navbar-brand" href="/"><img src="/wp-content/uploads/2024/04/WEBD4B-removebg-preview-e1713467317276.png"></a>
        <?php
        wp_nav_menu( array(
            'theme_location'    => 'main',
            'depth'             => 2,
            'container'         => 'div',
            'container_class'   => 'collapse navbar-collapse',
            'container_id'      => 'bs-example-navbar-collapse-1',
            'menu_class'        => 'nav navbar-nav',
            'fallback_cb'       => 'WP_Bootstrap_Navwalker::fallback',
            'walker'            => new WP_Bootstrap_Navwalker(),
        ) );
        ?>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-controls="bs-example-navbar-collapse-1" aria-expanded="false" aria-label="<?php esc_attr_e( 'Toggle navigation', 'your-theme-slug' ); ?>">
      <span class="navbar-toggler-icon"></span>
      </button>
        <?php //get_search_form(); ?>
    </div>

</nav>
`

but now when I click on the icon the icon jumps below the nav item on the left?

I also wanted to see if I were to add the search form I created,
how would I get it to show on the drop down when you click on the icon?

as you can see I have it commented out right now becuase it stays outside of the dropdown, next to logo and icon on mobile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.