Reputation:
I'm using a bootstrap theme, and i kind of edited it to my needs. Internal links (on the same page) are working, but external links are not clickable with the left mouse button. When i right click and open a link in a different tab it does work. I have no clue on what i did wrong, as i have not massively destroyed the code, just edited it to my needs(link).
<li><a href="#body">Home</a></li>
<li><a href="#info">information</a></li>
<li><a href="#server">Server</a></li>
<li><a href="#packages">packages</a></li>
<li><a href="//xxxxx">forum</a></li>
<li><a href="//xxxxx/">Donate</a></li>
the links with a # infront of them do work but externals do not.
Anyone has any idea on how to fix this?
Upvotes: 0
Views: 364
Reputation: 837
As you are using singlePageNav()
function you just need to add external
class to external link.
Updated HTML
<li><a href="#body" class="current">Home</a></li>
<li><a href="#info" class="">information</a></li>
<li><a href="#server" class="">Server</a></li>
<li><a href="#packages" class="">packages</a></li>
<li><a href="http://forum.lvcnr.org/forum.php" class="external">forum</a></li>
<li><a href="http://donate.lvcnr.org/" class="external">Donate</a></li>
Hope this will work.
For more info here is an example of same single-page-nav plugin.
Upvotes: 1
Reputation: 9570
you have a click handler somewhere that has code that is preventing the click from working. I am guessing that this is the evil line , I really don't know fr sure I didn't go through all your js files:
jQuery('#nav').singlePageNav({
I don't know what singlePageNav()
does , but I'd be willing to bet that is probably the root cause
I'm not going to search through your entire code to find it , but I do know for sure that is what is going on. If you go into the console and type this:
$('#nav li a').off('click');
then the links go back to working like normal.
This goes back to my original comment that there is nothing at all wrong here , there is something else going on. In this case you have some other code off somewhere else targeting these links preventing them from working.
Upvotes: 0