1.- Choose the mobile view
2.- Select a Property (The index.html works fine, but crash with another webpage like “property-single.html”)
3.- Try to used the menu but doesn´t work.
NOTE: The console show “Uncaught TypeError: Cannot read property ‘top’ of undefined”, and the site stop working.
NOTE 2: If I change to “Browser view”, the site works fine.
Yes, your report is valid, I can see this problem, I will report it to our developers, but please consider, this is HTML template and they are provided as-is if you ever worked with HTML templates such problems can be fixed easily
Temporary solution:
Open your “warehouse” file and then open “js” folder, then open “main.js” file and press CTRL + F to search for “// navigation”
Then copy this code:
var OnePageNavigation = function() {
if (window.location.href.indexOf('property-single') !== -1) {
var main_menu = "";
var mobile_menu = "";
}
else {
var main_menu = ".main-menu li a[href^='#'],";
var mobile_menu = ", .site-mobile-menu .site-nav-wrap li a";
}
var navToggler = $('.site-menu-toggle');
$("body").on("click", <code>${main_menu} .smoothscroll[href^='#'] ${mobile_menu}</code>, function(e) {
e.preventDefault();
When you have copied the code from above, just select all code from “var OnePageNavigation… to … e.preventDefault();” and paste the code that you copied from above.