ChrisWojcik / single-page-nav

jQuery plugin that provides smooth scrolling and advanced navigation for single page websites.
http://chriswojcik.net/demos/single-page-nav/
161 stars 75 forks source link

External Link not working #12

Closed imadeelnazar closed 7 years ago

imadeelnazar commented 10 years ago

I have a external link blog, and contact, navigation is working fine and scrolling nicely but when i click on blog and contact it did't go to their external page.

// The actual plugin $('#nav').singlePageNav({ offset: $('.navigation-box').outerHeight(), filter: ':not(.external)', currentClass: 'hover-class', updateHash: true, beforeStart: function () { console.log('begin scrolling'); }, onComplete: function () { console.log('done scrolling'); } });

ChrisWojcik commented 10 years ago

You should be able to use the filter option for the plugin to exclude certain links and make them function as normal.

Essentially you can add a class to those links and use the filter option to have the plugin target all links which do NOT have that class.

If that's not working for you can you post a link? I'd need to more info to diagnose your specific problem.

fmms commented 8 years ago

I just experienced the same issue. add class="external" do my links that are not just scrolling on the one pager solved it for me.

jeraldsubiera commented 7 years ago

Guys please give a guide on how to add class external. and how to fix external link issue

imadeelnazar commented 7 years ago

Use Class with anchor external <a href="http://abc.com" class="external">External Link</a>

jeraldsubiera commented 7 years ago

@roystone im using joomla here is the output: a href="/index.php/jobseeker-control-panel" target="_blank" class="menu-item joomla automatically include "menu-item" class which should be "external", i try also to add css link module "external" the output is class="menu-item external"