Support Forum

  • Page:
  • 1

Mobile menu items will not populate

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

DESCRIPTION:
The mobile menu we use in version 2 of the Zen Grid Framework uses jQuery to load your menu items from the menu into a select box.

There are some known issues with certain minor versions of jQuery with this feature.


SOLUTION:
If you receive an error with the select menu not populating properly then please change the jQuery version to the latest possible to see if that fixes the issue.

In general you should n't receive this issue if you are using the framework however we have seen the issue appear on sites that also have JB Library installed and are using a minor version of jQuery.

In this case please unpublished or iuninstall JB LIbrary. That plugin is no longer needed for Framework v2 templates.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Anthony

Please look at

ccslimited.info

I'm struggling to get the mobile menu populated
Using template JBPlatform

You need to hide the left-hand banner first (i'll try to make that automatic with css mediaqueries) before reducing window width

Regards
  • richarddhill's Avatar
  • richarddhill
  • 6 Month Developer
  • 193 posts
  • 3 Thanks
  • Karma: 5
The administrator has disabled public write access.
Found it

In template.js you don't use #nav but #leftCol

Regards
  • richarddhill's Avatar
  • richarddhill
  • 6 Month Developer
  • 193 posts
  • 3 Thanks
  • Karma: 5
The administrator has disabled public write access.
B) Glad you got it sorted. Thanks for letting us know.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Sorry - but hit same problem with another site, this time using JBCorporate.

I added alert(el.text()); before getSubMenu(el); in function jQuery(document).ready within template.js and I see all the menu items come up

But the #mobilemenu options are still empty (clue: I get the right number of them!)

Site is currently at

www.i-webdesigner.co.uk/jenjones

Thanks
  • richarddhill's Avatar
  • richarddhill
  • 6 Month Developer
  • 193 posts
  • 3 Thanks
  • Karma: 5
The administrator has disabled public write access.
Hi there,

Ive seen this happen with earlier versions of jQuery but 1.6 is normally fine.

Can you try changing the version to latest and see if that solves the issue?

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Anthony

I've tried setting JBCorporate to Latest-Google Only and it then uses

ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js

Then I saved the source, editted to use 1.7.2 min and 1.7.2 full but still menu not populated

AHAA!

Spotted that RedShop is using jquery.tools.min.js so I tried removing that
NOW IT WORKS!!

Does jquery.min.js contain all the functions of jquery.tools.min.js ??

Should I force JBCorporate to use FULL jquery.js ?
If so how ?
  • richarddhill's Avatar
  • richarddhill
  • 6 Month Developer
  • 193 posts
  • 3 Thanks
  • Karma: 5
The administrator has disabled public write access.
Sorry - forget last question jquery.min is jquery without the CRLF's

Also found this quote
***
Tools.js is a UI framework similar to jquery ui, however it comes with jquery pre-included in it. If you include jquery tools.js, you dont need to include jquery.
***

So I told JBCorporate to use 'none' query lib and let RedShop include jquery.tools but this was bad - no mobilemenu at all!

Now telling JBCorporate to use latest jquery and REMOVE jquery.tools.min.js
This works - but will Redshop suffer?
  • richarddhill's Avatar
  • richarddhill
  • 6 Month Developer
  • 193 posts
  • 3 Thanks
  • Karma: 5
Last Edit: 11 years 8 months ago by richarddhill.
The administrator has disabled public write access.
Not sure if it will suffer but you basically only need one version of jQuery on the page and it needs to load before the other template scripts.

If you start seeing some oddities let us know and we will dig deeper for you.

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers