Home › Forums › Theone WordPress Theme › Mobile menu is messed up
- This topic has 12 replies, 2 voices, and was last updated 11 years ago by
SeaTheme.
-
AuthorPosts
-
May 27, 2015 at 7:58 pm #7385
PowerHouz
ParticipantThe links on the mobile menu seem broken. There seems to be an error with the #top tag. Sometimes I noticed this error in the regular size menu too.
They only work when im not anchoring them to the #top tag, but I need the links to go to the top of the page so the user doesnt have to scroll up.
When I set anchor as “none” the BM slider on each page brakes…
May 27, 2015 at 7:59 pm #7386May 27, 2015 at 11:03 pm #7390please leave your wp-admin(url/user/pass) as private reply, I’ll log in to check it.
Best,Bwsm
May 28, 2015 at 2:42 am #7399PowerHouz
ParticipantThis reply has been marked as private.May 28, 2015 at 6:13 am #7403If you want to hide “#top” on link, the fullwidth of this page would not be set Anchor Name.
If you want to set a page as “onepage”(with multi anchors), please use lowercase letters for “Anchor Name” and slug name of Page, do not use spaces and other characters
May 28, 2015 at 9:25 pm #7404PowerHouz
ParticipantOk, I did like you said and changed all anchors and slugs to lower-case with no spaces. But I dont understand the part about hiding #top. I still cant get to a primary menu link by clicking directly on it. For example if im on the homepage i cant click on the primary SERVICES link but I can do it on the submenu. This only happens on mobile btw.
May 28, 2015 at 9:31 pm #7405PowerHouz
Participantif im on a page and try to link one of the primary menu links it just goes to the top of the current page. How can I solve that. Also if I disable the fade-in loading effect the links stop working on the desktop view too.
May 29, 2015 at 2:55 am #7406There is a way to remove #top: when you edit the menu item every time, re-choose the “none” (https://www.dropbox.com/s/f9wnbk9m8l5q6lc/QQ20150529-1.jpg?dl=0).
Because the anchor selector can not be stay on “none” after save, we’ll fix it as soon.I noticed there is some cache on your site even I closed the super cache settings, when I edit the menu, I refresh the front page, it isn’t updated. I need refresh the front page twice at least, it would be updated.
May 29, 2015 at 6:32 pm #7408PowerHouz
ParticipantYep I know that setting them to “none” kind of fixes the problem, but as soon as I anchor them to “none” the slider and other things break on the page.
Like here, in the homepage the slider is missing in the top and on the clients wrap the images are all messed up
May 29, 2015 at 6:46 pm #7410PowerHouz
ParticipantI mean, it seems it breaks some of the JS: “Uncaught TypeError: Cannot read property ‘split’ of undefined: jquery.onepagenav.js?ver=3.0.0:21”
May 30, 2015 at 2:42 am #7411You have to set “#top” for “Welcome” menu item for homepage(it should not be set “none” for home page in my screenshot), same as service page, set “#top” for service page. So, you need 2 menus if you want to use anchor for service page also. You could consider to use this plugin: https://wordpress.org/plugins/menu-per-pages/
June 1, 2015 at 2:53 pm #7419PowerHouz
ParticipantOk, the issue with the menu was actually part of jquery.onepagenav.js, I found the culprit if it helps someone:
I kept getting Uncaught TypeError: Cannot read property ‘split’ of undefined in
getHash: function($link) {
return $link.attr(‘href’).split(‘#’)[1];
},until changed it to
getHash: function($link) {
return ($link.attr(‘href’))? $link.attr(‘href’).split(‘#’)[1] : ”;
},June 2, 2015 at 1:45 am #7420Thanks for sharing.
-
AuthorPosts
- You must be logged in to reply to this topic.
