How to Create a WordPress Menu Link That Isn’t Clickable

How to Create a WordPress Menu Link That Isn’t Clickable

Here’s a simple tip that may be useful to you if you’re just getting started with creating your own WordPress site. Sometimes when you’re setting up a dropdown menu with the built-in WordPress menu system you may want the top level item to be unclickable although still show the subnav items beneath.

On the links that you don’t want to be clickable, you’ll want to create a custom link and set its href attribute to “#”. To be clear, it’s not that you cannot click this link. Rather, it’s that it doesn’t go anywhere or take you away from the current page.

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

This is very easy and your dropdown menu should work as expected.

Tags: