AirOnePage template - external link in menu

Hi, I have downloaded your template

All items (links) in the main menu are just "scrolling" links.
Is it possible to have a link in the menu which will direct me to completely separate page?

If I try to do it and put there link with HREF="/myotherpage",
I get a javascript error in the console
"Syntax error, unrecognized expression: /myotherpage"

While there is onClick event fired which runs this code:

function(o) {
var a = $($(this).attr("href")).offset().top;
$("html, body").stop().animate({
scrollTop: a - t
}, 600), o.preventDefault()
Text formatting options

Replies (4)


You can remove data-spy="scroll" attribute from the body tag and use external links for the menu nav.

Thank you, removed but..... it does nothing.
All links work the same, also error the same.

You can format using and remove the o function's code like this:

o = function() {}

OK thanks!
Text formatting options
Text formatting options

React Dev Vacancy

KeenThemes is looking for a Junior React or Vue developer to build awesome apps.
keenthemes mega bundle