This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

make the parent page in menu unclickable

10 years ago · Last reply by Magus 10 years ago

I’d like to make the parent page non-clickable in the menu so that when you hover over it the sub page drop down appears. I believe there was a custom css script developed for this but I can’t find it in my search.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Magus Staff 10 years, 8 months ago

    Hi Andreas

    Unfortunately it is not possible to disable a link using CSS. The best you can manage is to hide it by stopping the cursor from changing and by disabling the hover effect.

    .current-menu-item a {
        cursor: default;
        pointer-events: none;
    }
    .current-menu-item a:hover {
        background-color: inherit !important;
        color: #e2e2e2 !important;
    }

    In the second entry please change the color section to match the colour of your menu text.

    Let us know if this is what you were after

    Magus

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread