Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: DoNotLinkIt

Home Forums Latest release 1.1.x + Bootstrap 4 addon DoNotLinkIt Reply To: DoNotLinkIt

#8325
admin
Keymaster

Just change your no link items’ HTML from this:

<span class="btn link">testseite</span>

to this:

<a href="#">testseite</a>

Or if you like, you could also add a class to the link – e.g.:

<a href="#" class="no-link">testseite</a>

and some CSS to use the default cursor (or even disable the hover, etc.):

.no-link {
	cursor: default;
	background-color: white !important;
}

In general, it’s not recommended having no-link items that have sub menus for various reasons. For a bit more insights as to why, you can take a look at the following topic:

https://www.smartmenus.org/forums/topic/how-to-make-this-work-with-no-links-at-the-top-level/