appear or disappear a link in a menu - Forum | JoomShaper
Solved General

appear or disappear a link in a menu

Asked by jeronimo89 5 years ago Last activity 5 years ago

Hi,
i would like to disappear a link in a menu for the computer and the same link disappear for the tablett and the mobile. Is there any possibility ?

Thanks a lot

Accepted answer

Marked as the solution
Ofi Khan Staff

Hello jeronimo89

Sorry, we do not provide customization support. But it is possible with Custom CSS. I can give you hints.
If you want to totally vanish a menu item, then use this CSS to Template Options -> Custom Code -> Custom CSS

@media (min-width: 768px){
   .sp-menu-item:nth-child(2) {
       display: none;
   } 
}

It will make your Agenda menu item disappeared for Desktop view.

Similarly, if you want to show the menu item but disable the link, then use this CSS to Template Options -> Custom Code -> Custom CSS

@media (min-width: 768px){
   .sp-menu-item:nth-child(2) {
       pointer-events: none;
   } 
}

It will show your Agenda menu item but the link will be disabled for Desktop view.

Best regards

8 more replies

Mehtaz Afsana Borsha Staff

Hi,
Do you want to disappear for computer,tab and mobile? I mean all devices? Which link? could you please share some screenshots ?

jeronimo89 Asked this

Hi Mehtaz Afsana Borsha

is this this adress, this page.

https://test.presse-evasion.fr/index.php/partenaires

I would like to see the link for tablet and mobile in the menu but i don't won't to see this link to don't go on this page with computer.
I have the same images of the partners and i don't want to see double image.
test on mobile and computer the page.
How can i give you screenshot ?
Best regards
Jérôme

Ofi Khan Staff

Please use this CSS to Template Options -> Custom Code -> Custom CSS

@media (min-width: 768px){
   .sp-menu-item:nth-child(5) {
       display: none;
   } 
}
jeronimo89 Asked this
5 years ago · edited

Hi OFFI

Thanks a lot

a set your code in Template Options -> Custom Code -> Custom CSS
GREAT IT WAS YHE NUMBER 6
thanks a lot for your help
Jerome
:-)

Ofi Khan Staff

You are welcome

Ofi Khan Staff

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback here:

  1. JED
  2. Trustpilot
jeronimo89 Asked this

With a plaisure dear OFFI

best regards

Jérôme

:-)

Ofi Khan Staff

Thanks much. Have a good day or evening (haha based on your location).

Log in to reply.