Void-menu desktop vs. mobile

Hi there

For the PC version i use Custom Links with the class void-menu. This way I can structure my menu without creating unnecessary sub-pages.

However in mobile this is an issue because the menu point doenst open to the pages under it.

How can I adress this?

Menu Mobile

Hello @bakrona,

Thanks for writing in!

Please add a # hash character as the URL in your custom links:

Best Regards,

RueNel

Hi there

I added # but i dont see any changes on the mobile version (also after clearing cache).

Hello @bakrona,

In order to help you with your concern, please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin level username and password

You can find the Secure Note button at the bottom of your posts

Thanks

please find the details below

Hi @bakrona,

It seems that the void-menu class is the reason behind your issue, I would like to request you to check into the mobile devices once by removing the void-menu class.

Thanks

without void-menu class the mobile version works fine

I need to find a solution now that in desktop view, the link is not clickable, nor that it changes to cold when hovering

Hello @bakrona,

I checked your site in desktop and mobile the menu is working fine in both the devices.

Thanks

yes i saw it is working. however i introduced void-menu class for a reason.

Since its a sub link without a page, it serves only as menu header in the desktop view. I therefore need to find a solution that in desktop view, the link is not clickable, nor that it changes to bold when hovering

Hello @bakrona,

You have added void-menu class to the menu items. You also added this custom CSS:

/* Remove Highlight effect when hovering over void menu items */

.void-menu > a {
   pointer-events: none;
}

It is best that you update your custom CSS into this:

/* Remove Highlight effect when hovering over void menu items */
@media(min-width: 980px) {
  .void-menu > a {
     pointer-events: none;
  }
}

The @media block will make sure that the pointer-event will only be disabled on larger screens starting from 980 pixels. You can check our more about the @media CSS rule here:

Best Regards.

problem solved, thank you for your help

You are welcome @bakrona

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.