Hide sub menu item on mobile

Commercial shopping Joomla template to easy create webshop with various extensions supported like ViruteMart, K2 and K2Store.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Feb 02, 2014 4:00 pm
Reply with quote
Report this post
Hello,

Could you tell me how to hide sub-menu item (for the main menu) in mobile device ?
I saw in your help, that we can do that in module suffix, but in this case I have no module for that sub menu....

Thank you in advance.
User avatar
Senior Boarder

GK User
Sun Feb 02, 2014 4:11 pm
Reply with quote
Report this post
Hello,

Unfortunately we have no this kind of option in our framework. Additionally you cannot do it with CSS, because on the mobile devices there is dropdown menu instead of classic menu.
User avatar
Administrator

GK User
Mon Feb 03, 2014 11:58 am
Reply with quote
Report this post
Hello,

And could I access to this drop dow menu (if y want for example to delete mannually some items) ?
User avatar
Senior Boarder

GK User
Mon Feb 03, 2014 8:09 pm
Reply with quote
Report this post
The only idea which I have is adding the following CSS rule in any CSS file at the end:

Code: Select all
option[value="URL"] {
display: none;
}


where URL is a value of the specific option to hide and must be the same as in the menu.
User avatar
Administrator

GK User
Fri Feb 14, 2014 9:31 am
Reply with quote
Report this post
dziudek wrote:The only idea which I have is adding the following CSS rule in any CSS file at the end:

Code: Select all
option[value="URL"] {
display: none;
}


where URL is a value of the specific option to hide and must be the same as in the menu.


Hi , I have a question about this methos. Is it good to use display: none , as I know Google don't like hidden elements? If I use display: none , to hide an sub menu items, will google penalize my site ?
User avatar
Fresh Boarder

GK User
Fri Feb 14, 2014 9:49 pm
Reply with quote
Report this post
I think that hiding so small amount of content is not a problem for Google - additionally I'm not sure if Google bots are using and parsing the CSS for mobile devices.
User avatar
Administrator


cron