I am making a small site. When a link in the navbar is active, there is an underline on the link. Here is “Formidling” active: Example site. The problem is that when I click fx: “Kurser” in the left sidebar, the underline is disappearing.

I would like that the underline is gonna stay in the menubar when you click on a submenu in the sidebar.

I tried to solve this with the following code, but I think I am going the wrong way?

.current-menu-item {
     text-decoration: underline !important;
}

a:active {
    color: #993366;
    text-decoration: underline;
    outline: 0;
}

Read more here: Underline on sublinks from navbar


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: