Home>Support>Disable current page link on the nav bar?

Disable current page link on the nav bar?

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi,

Is there a way to disable the current page link on the navigation bar?

many thanks,

Carl

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Hi Carl

    You can fix/change this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    li.current-menu-item {
    	pointer-events: none;
    }
    

    You might also need to install the SiteOrigin CSS Editor.

  2. 9 years, 4 months ago Carl Bullock

    Thanks Andrew,

    I’ll give that a go when I get home I’ve already got the custom CSS editor installed it’s a brilliant little plugin for a few small tweaks.

  3. 9 years, 4 months ago Carl Bullock

    works brilliantly Thanks again Andrew!

    iow.bcss.org.uk

  4. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Awesome :) Really glad to hear that did the trick.

    All the best with your website.

  5. 9 years, 4 months ago Carl Bullock

    I have just noticed a slight problem with this way of doing it…

    If I have a menu item with an on hover drop down and then navigate to the main menu link I cannot access the drop down links on that page without first navigating to another page.

    Is there anyway to incorporate a fix but also disable the current page link still?

    Many thank again

    Carl

    In case I haven’t explained it well if you go to the site in question (http://www.iow.bcss.org.uk/) and then hover over “Meetings 2016” and then click the link and then hover over it on the loaded page you will see that it wont work :/

  6. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Hi Carl :)

    Sure. Try replacing our previous rule with the following:

    li.current-menu-item:not(.menu-item-has-children) {
    	pointer-events: none;
    }
    

    Let me know how that goes.

  7. 9 years, 4 months ago Carl Bullock

    Brilliant thanks again Andrew

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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More