- Posts: 48
- Thank you received: 0
Menu in mobile doesn't work
-
angelicalopez
Inactive member - Topic Author
- Member
Less
More
10 years 9 months ago #37716
by angelicalopez
Menu in mobile doesn't work was created by angelicalopez
Morning,
I bought this template...Music Band Template but when I tried to access the page via mobile the menu
is showing just for few seconds but then is hidden and I cant access to the other menu links. I have the mobile options Responsive Behaviour and menu are enabled. Using Joomla 3.2. domain: papayera.co.uk
Thanks for your help!
I bought this template...Music Band Template but when I tried to access the page via mobile the menu
is showing just for few seconds but then is hidden and I cant access to the other menu links. I have the mobile options Responsive Behaviour and menu are enabled. Using Joomla 3.2. domain: papayera.co.uk
Thanks for your help!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 9 months ago #37723
by ivan.milic
Replied by ivan.milic on topic Menu in mobile doesn't work
See this:
www.hotjoomlatemplates.com/support-forum...t-work?start=6#34948
apply solution form post #34948
Upload any image you want under this location:
templates/hot_music_band/images/tinynav.png
also open:
templates/hot_music_band/js/responsive_menu.js
and this line:
if(topMenuWidth > topMenuContainerWidth) {
change to:
if(jQuery(window).width() < 960) {
www.hotjoomlatemplates.com/support-forum...t-work?start=6#34948
apply solution form post #34948
Upload any image you want under this location:
templates/hot_music_band/images/tinynav.png
also open:
templates/hot_music_band/js/responsive_menu.js
and this line:
if(topMenuWidth > topMenuContainerWidth) {
change to:
if(jQuery(window).width() < 960) {
Please Log in to join the conversation.
-
angelicalopez
Inactive member - Topic Author
- Member
Less
More
- Posts: 48
- Thank you received: 0
10 years 9 months ago #37734
by angelicalopez
Replied by angelicalopez on topic Menu in mobile doesn't work
Hi,
I have this code from the file responsive_menu.js . Where should i change the line? Thanks!
function menutransform(menuTriggerValue){
//var topMenuContainerWidth = jQuery("div.cell").has("ul.navh").innerWidth();
//var topMenuWidth = jQuery("ul.navh").innerWidth();
//jQuery("ul.navh").css("min-width",topMenuWidth);
var screenWidth = jQuery(window).width();
if( screenWidth < menuTriggerValue ) {
jQuery(".tinynav").css("display","block");
jQuery("ul.navh, ul.navv").css("display","none");
jQuery("ul.navh, ul.navv").tinyNav({
active: 'current', // String: Set the "active" class
header: 'Navigation', // String: Specify text for "header" and show header instead of the active item
});
}
else
{
jQuery(".tinynav").css("display","none");
jQuery("ul.navh, ul.navv").css("display","block");
}
}
I have this code from the file responsive_menu.js . Where should i change the line? Thanks!
function menutransform(menuTriggerValue){
//var topMenuContainerWidth = jQuery("div.cell").has("ul.navh").innerWidth();
//var topMenuWidth = jQuery("ul.navh").innerWidth();
//jQuery("ul.navh").css("min-width",topMenuWidth);
var screenWidth = jQuery(window).width();
if( screenWidth < menuTriggerValue ) {
jQuery(".tinynav").css("display","block");
jQuery("ul.navh, ul.navv").css("display","none");
jQuery("ul.navh, ul.navv").tinyNav({
active: 'current', // String: Set the "active" class
header: 'Navigation', // String: Specify text for "header" and show header instead of the active item
});
}
else
{
jQuery(".tinynav").css("display","none");
jQuery("ul.navh, ul.navv").css("display","block");
}
}
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 9 months ago #37739
by ivan.milic
Replied by ivan.milic on topic Menu in mobile doesn't work
You don't have to do there nothing because in that template similar approach is already applied (I missed that). Only if you have problems with point where menu transforms to responsive menu you can override value of
menuTriggerValue
before this line
if( screenWidth < menuTriggerValue ) {
menuTriggerValue
before this line
if( screenWidth < menuTriggerValue ) {
Please Log in to join the conversation.
-
angelicalopez
Inactive member - Topic Author
- Member
Less
More
- Posts: 48
- Thank you received: 0
10 years 9 months ago #37749
by angelicalopez
Replied by angelicalopez on topic Menu in mobile doesn't work
Hi,
Can you give an examples how to override the value in that line. At the moment is not working as i explained to you. Thanks!
Can you give an examples how to override the value in that line. At the moment is not working as i explained to you. Thanks!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 9 months ago #37754
by ivan.milic
Replied by ivan.milic on topic Menu in mobile doesn't work
//for example 940 is width of screen when menu should transform:
menuTriggerValue = 940;
if( screenWidth < menuTriggerValue ) {
menuTriggerValue = 940;
if( screenWidth < menuTriggerValue ) {
Please Log in to join the conversation.
Time to create page: 0.259 seconds