Closed imadeelnazar closed 7 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.
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.
Guys please give a guide on how to add class external. and how to fix external link issue
Use Class with anchor external
<a href="http://abc.com" class="external">External Link</a>
@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"
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'); } });