i want to hide menu item from desktop view only - Forum | JoomShaper
Solved SP Page Builder

i want to hide menu item from desktop view only

Asked by Kostas Mantas 2 years ago Last activity 2 years ago

i want to hide menu item from desktop view only i add the below css code but still is visible on mobile

@media (min-width: 991px) {
    .item-28 {
        display: none; !important;
    }
}

Accepted answer

Marked as the solution
Ofi Khan Staff

I have found the solution. Please do not use HTML in Basic -> Footer -> Copyright section.

https://prnt.sc/c8A9_oRSYRrS

I have removed the copyright text from your site. Just use plain text there.

13 more replies

Ofi Khan Staff

Hello Kostas Mantas

Do you want to hide any specific menu item or all menu items from the desktop view? Let me know. I will help you.

Best regards

Kostas Mantas Asked this

yes the specific menu item which is book now

Ofi Khan Staff

I have added this CSS to

Template Options -> Custom Code -> Custom CSS

@media (min-width: 991px){
    .sp-menu-item:last-child{
        display: none;
    }
}
Kostas Mantas Asked this

something gose wrong and now site. Dosent work and i have some code at the top:
Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /var/www/vhosts/digitalvibe.gr/plakiasgalaxyvillas.gr/templates/luxyort/features/logo.php on line 35
plakiasgalaxyvillas.gr

Kostas Mantas Asked this

and my custom code disappear.

Ofi Khan Staff

I am also not sure what happened to your site. I have just added the Custom CSS. I have not changed anything. I think there was an issue in your configuration. I have installed a fresh template. Please change the template style. I have customized this file: templates/luxyort/features/logo.php and the php warnings are gone.

Kostas Mantas Asked this

yes but its thw 2nd time i lost all my code and i have do it again. i cant do it that all the time. I think the problem is with the helix. Now i have to do it all again?

Ofi Khan Staff

I am really sorry for the inconvenience. I understand the trouble. Just apply the changes and take a look that at what point you get the issue. Then we can fix it.

Kostas Mantas Asked this

i try to write the code again but some changes dosent work
for example header color change. it seems that changes when site load but instant change like something is above

Log in to reply.