Navigation only being fetched on mobile

  • Jeannine
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 6 months ago #33022 by Jeannine
Hello.

It is very important to be able to setting up a menu which only is fetched on mobile devices. How to do that?

Kind regards from DK

Please Log in to join the conversation.

More
11 years 6 months ago #33034 by ivan.milic
Menu is same it has only two ways of displaying based on screen width. Workaround would be to create two menus and use module class suffixes " mobile_menu" and " desktop_menu" , note first char in both cases is blank char.

Then in layout.css you could add css like this:

@media screen and (min-width: 512px) {
.mobile_menu{
display:none;
}
.desktop_menu{
display:block;
}

}

@media screen and (max-width: 512px) {
.mobile_menu{
display:block;
}
.desktop_menu{
display:none;
}

}

this would make one with suffix " mobile_menu" display when screen size is under 512px otherwise other menu would be displayed.

Please Log in to join the conversation.

  • Jeannine
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 6 months ago #33047 by Jeannine
Thank you so much indeed for this helpful response. I will try out.

Please Log in to join the conversation.

Time to create page: 0.161 seconds
Powered by Kunena Forum