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.

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

Free Video Why 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch) Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal.
Tags: