afang
afang

Reputation: 70

BootStrap Nav Button Link not Working?

The green "Blog" button on the top points to the right location, but when clicked, there is no response. It seems it's not a z-index issue. It seems to be a conflict with the jQuery nav, but the solution here is very unclear.

Here is the JS: http://pastebin.com/JuJwKdSZ and JS #2: http://pastebin.com/VDpViTqP

Here is the HTML: http://pastebin.com/BYuehZnU

Upvotes: 0

Views: 416

Answers (1)

Andrew
Andrew

Reputation: 1989

I think I may have found the answer. It is to do with the plugin you are using: OnePageNav

This handles all clicks on links on the page. There is a filter ability on that plugin though, when you initialize the instance of one page, you can include a filter of a class name and add that class name to your external link like so:

html

<a id="blog" class="btn button navbar-btn white external" href="/blog"><i class="fa fa-pencil"></i> Blog</a>

Change this in the first js file (line 44)

filter: '',

to this

filter: 'external',

Upvotes: 1

Related Questions