Tagged: jabuilder
-
AuthorPosts
-
abfilm Friend
abfilm
- Join date:
- March 2014
- Posts:
- 30
- Downloads:
- 22
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 21, 2017 at 8:32 am #1082595Greetings, I’ve gone through pretty much every single option there is and the main menu doesn’t work on mobile devices.
Currently, when you are on a mobile device and you click on a menu item, it scrolls down to the corresponding anchorpoint but the menu doesn’t hide itself afterwards, really annoying when the menu takes up all the space. Is there a way to get this to hide whenever you have pressed something on the menu?
Or atleast make it so that it’s not sticky on mobile devices, but is sticky on other devices such as laptop, desktop etc.
- This topic was modified 6 years, 11 months ago by abfilm.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 22, 2017 at 3:45 am #1082802Hi,
Hope this one can help: https://www.joomlart.com/forums/topic/close-mobile-menu-after-clicking-menu-item-one-page-layout/
abfilm Friendabfilm
- Join date:
- March 2014
- Posts:
- 30
- Downloads:
- 22
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 22, 2017 at 8:20 am #1082860Where do I add this?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 22, 2017 at 8:56 am #1082868In the Edit mode of a page builder, you can navigate to Settings > Custom Code and put in the place you wish: Top of head / Bottom of head / …
abfilm Friendabfilm
- Join date:
- March 2014
- Posts:
- 30
- Downloads:
- 22
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
December 22, 2017 at 9:20 am #1082873I tried adding the code snippet in the "Top of head" and it didn’t work.
I see that the Javascript calls "ul.nav li a" and when I try to mark that in the CSS it doesn’t exist so I’ve tried everything that could possibly work but sadly couldn’t get it to.
Can you check it and see if you get it to work?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 25, 2017 at 9:11 am #1083155Your code looks different from the suggestion from above topic, could you check again?
abfilm Friendabfilm
- Join date:
- March 2014
- Posts:
- 30
- Downloads:
- 22
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
January 2, 2018 at 7:31 am #1084203It looks different because I’ve tried multiple codes without any luck, whereof the one you linked did not work either.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 3, 2018 at 10:19 am #1084487Could you share the ftp account also?
abfilm Friendabfilm
- Join date:
- March 2014
- Posts:
- 30
- Downloads:
- 22
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
January 3, 2018 at 11:36 am #1084499We don’t have an FTP account for it, because the ".abfilm.no" is local, the best thing I can do is give you TeamViewer access
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 8, 2018 at 2:48 am #1085414Hi,
Let me try to replicate in my local and see how it goes.
I will get back to you soon.
abfilm Friendabfilm
- Join date:
- March 2014
- Posts:
- 30
- Downloads:
- 22
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
January 8, 2018 at 7:36 am #1085495That’s alright, I’ll be waiting.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 12, 2018 at 8:14 am #1086479Hi,
I’ve added this script before the closing of header tag in ‘index.php’ file of JA Builder template on your site:
<script> jQuery(document).ready(function($) { $("ul.nav li a").click(function() { $(".in").removeClass("in"); }); }) </script>
and it’s working now.
Kindly check.
-
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by Saguaros 6 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum