Post-installation message notification solution
https://www.youtube.com/watch?v=GIlWdmALMt0
Find out this code in this file location
// ******* Menu link ******** //
var homeSectionId = $(
"#sp-page-builder > .page-content > *:first-child"
).attr("id"); // home section id
//if (homeSectionId) { var homeSectionId = homeSectionId } else { var homeSectionId = onePageUrl }
$(
".sp-megamenu-wrapper .sp-megamenu-parent, .offcanvas-menu .menu.nav-pills"
)
.find('a:not(".no-scroll")')
.each(function (i, el) {
var $that = $(this),
url = $that.attr("href"),
splitUrl = url.split("#");
if ($that.hasClass("home")) {
if (homeSectionId) {
$that.attr("href", onePageUrl + "#" + homeSectionId);
} else {
$that.attr("href", onePageUrl);
}
} else {
if (typeof splitUrl !== undefined) {
$that.attr("href", onePageUrl + "#" + splitUrl[1]);
}
}
});
//onepage nav
$(
".sp-megamenu-wrapper .sp-megamenu-parent, .offcanvas-menu .menu.nav-pills"
).onePageNav({
currentClass: "active",
changeHash: false,
scrollSpeed: 1,
scrollOffset: 30,
scrollThreshold: 0.5,
filter: ":not(.no-scroll)",
});
});
And replace it with this code
// ******* Menu link ******** //
var homeSectionId = $(
"#sp-page-builder > .page-content > *:first-child"
).attr("id");
$(
".sp-megamenu-wrapper .sp-megamenu-parent, .offcanvas-menu .menu.nav-pills"
)
.find('a:not(".no-scroll")')
.each(function () {
var $that = $(this);
var url = $that.attr("href");
if (!url) {
$that.addClass("no-scroll");
return;
}
if ($that.hasClass("home")) {
if (homeSectionId) {
$that.attr("href", onePageUrl + "#" + homeSectionId);
} else {
$that.attr("href", onePageUrl);
}
return;
}
var hashIndex = url.indexOf("#");
if (hashIndex === -1) {
$that.addClass("no-scroll");
return;
}
var sectionId = url.substring(hashIndex + 1);
if (
!sectionId ||
sectionId === "undefined" ||
sectionId === "null" ||
!document.getElementById(sectionId)
) {
$that.addClass("no-scroll");
return;
}
$that.attr("href", onePageUrl + "#" + sectionId);
});
// OnePage navigation
$(
".sp-megamenu-wrapper .sp-megamenu-parent, .offcanvas-menu .menu.nav-pills"
).onePageNav({
currentClass: "active",
changeHash: false,
scrollSpeed: 1,
scrollOffset: 30,
scrollThreshold: 0.5,
filter: ":not(.no-scroll)",
});
});