Is it possible to display menu item only in mobile

Is it possible to display menu item only in mobile was created by rowby

Posted 9 years 7 months ago #22029
Hi Ced,

Is it possible to hide a menu item so it only shows in mobile. I don't think it is pos6, gut thought if there were any tricks to do this you would be the person who would know. I am using the parameters plugin.

Thanks

Rowby
by rowby

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Is it possible to display menu item only in mobile

Posted 9 years 7 months ago #22030
Hi
yes, hide it with CSS in the normal menu, it will show in the mobile one :)
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by rowby on topic Is it possible to display menu item only in mobile

Posted 9 years 7 months ago #22034
Good. display:none I guess somewhere in the menu parameter?
by rowby

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Is it possible to display menu item only in mobile

Posted 9 years 7 months ago #22036
may be more in the theme css :)

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: rowby

Please Log in or Create an account to join the conversation.

Replied by rowby on topic Is it possible to display menu item only in mobile

Posted 9 years 7 months ago #22085
Thanks Ced,

That is working nicely. In case anyone else needs to do this here's what I did

I went to /modules/mod_maximenuck/themes/css3megamenu/css (css3megamenu is the theme of this specific module.)

I made a backup of maximenuhck.php

Then I used a text editor to add the following to the bottom of the file:

li.item234 {
display:none;
}

(Item 234 is the item id of that specific menu item that I want to hide.)

And indeed it does not show in desktops but does show in tablets and cell with mobile enabled.

Rowby
Last Edit:9 years 7 months ago by rowby
Last edit: 9 years 7 months ago by rowby.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Is it possible to display menu item only in mobile

Posted 9 years 7 months ago #22093
the best would be to
- duplicate your theme
- rename it
- select it as theme in the module options

then it will not be erased by future updates

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.649 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 876 guests and no members online