Is it possible to display menu item only in mobile
10 years 4 months ago #22029
by rowby
Is it possible to display menu item only in mobile was created by rowby
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
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
Please Log in or Create an account to join the conversation.
10 years 4 months ago #22030
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Is it possible to display menu item only in mobile
Hi
yes, hide it with CSS in the normal menu, it will show in the mobile one
CEd
yes, hide it with CSS in the normal menu, it will show in the mobile one
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
10 years 4 months ago #22034
by rowby
Replied by rowby on topic Is it possible to display menu item only in mobile
Good. display:none I guess somewhere in the menu parameter?
Please Log in or Create an account to join the conversation.
10 years 4 months ago #22036
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Is it possible to display menu item only in mobile
may be more in the theme css
Joomlack Webmaster and Developer
The following user(s) said Thank You: rowby
Please Log in or Create an account to join the conversation.
10 years 3 months ago - 10 years 3 months ago #22085
by rowby
Replied by rowby on topic Is it possible to display menu item only in mobile
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
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: 10 years 3 months ago by rowby.
Please Log in or Create an account to join the conversation.
10 years 3 months ago #22093
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Is it possible to display menu item only in mobile
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
- 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
Please Log in or Create an account to join the conversation.
Time to create page: 0.213 seconds