Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with Bootstrap? #23

Open
namaljayathunga opened this issue Mar 3, 2016 · 11 comments
Open

How to use with Bootstrap? #23

namaljayathunga opened this issue Mar 3, 2016 · 11 comments

Comments

@namaljayathunga
Copy link

Thanks VPenkov for your amazing plugins. I added okayNav to my exists project that use bootstrap navigation bar. However, It's not working. How can I solve this problem. Code spinet is include bellow. Thanks.

<nav class="navbar navbar-inverse navbar-fixed-top okayNav" id="nav-main"  role="navigation">
  <div class="container-fluid">
    <div class="navbar-header">
      <div style="padding-top:3px;" class="pull-left">
        <a class="project-title" href="/"><img src="/assets/images/logo2.png" alt="" width="32" height="32" style="margin-left: 15px;"> Project </a>
      </div>
    </div>
    <ul class="nav navbar-nav navbar-right nav-right-icons nav-main-btns">
      <li>
        <a href="/register" class="btn btn-sm nav-reg-btn">Free Register</a>
      </li>
      <li>
        <a href="/login" class="btn btn-sm nav-signin-btn">Login</a>
      </li>
    </ul>
  </div>
</nav>
@VPenkov
Copy link
Owner

VPenkov commented Mar 3, 2016

The <ul> needs to be alone in another element. Try this:

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">

        <div class="navbar-header">
            <div style="padding-top:3px;" class="pull-left">
                <a class="project-title" href="/"><img src="/assets/images/logo2.png" alt="" width="32" height="32" style="margin-left: 15px;">
                    Project
                </a>
            </div>
        </div>

        <nav class="okayNav" id="nav-main">
            <ul class="nav navbar-nav navbar-right nav-right-icons nav-main-btns">
                <li><a href="/register" class="btn btn-sm nav-reg-btn">Free Register</a></li>
                <li><a href="/login" class="btn btn-sm nav-signin-btn">Login</a></li>
            </ul>
        </nav>

    </div>
</div>

Then just do $('#nav-main').okayNav()

PS: might wanna add display: flex to your .navbar-fixed-top .container-fluid

@namaljayathunga
Copy link
Author

Thanks for your response, However, some issues not fix yet. Before your answer, okayNav class completely replaced bootstrap navbar from okayNav default. With your answer, bootstrap navbar visible fine. However, register and login button not visible.

@VPenkov
Copy link
Owner

VPenkov commented Mar 15, 2016

Can you show me a demo?

@boynet
Copy link

boynet commented Mar 29, 2016

+1 cant get it to work.
on small size the navbar just collapse to normal unstyled ul can send you demo to email?

@VPenkov
Copy link
Owner

VPenkov commented Mar 29, 2016

I'll provide a Bootstrap demo in the next few days.

@aritztg
Copy link

aritztg commented Apr 22, 2016

Thanks @VPenkov !

@macsupport
Copy link

Any progress on a bootstrap demo?

@throrin19
Copy link

Any news ?

@amnkhan
Copy link

amnkhan commented Sep 17, 2016

OkayNav creates a loots conflicting issues while using with bootstrap. Can you give a demo where you used okaynav with bootstrap that also has a dropdown menu???

TIA!

@televators
Copy link

I'm having issues with Bootstrap on Wordpress as well. The instructions should be more verbose and include info about using with Bootstrap and/or Wordpress. Otherwise, excellent stuff.

@CloudPower97
Copy link

What about the demo with Bootstrap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants