Buy me a coffee

How to make a specific nav link unclickable

To make a specific nav link unclickable on a specific page, you can follow these.

#1. First, find Page ID. You can use below tool.

In my example, we will have:

  • #collection-6673f2e18432c25013aee99f

How To Make Nav Link Unclickable 01 Min

#2. Suppose we need to make the item: Search unclickable

How To Make Nav Link Unclickable 02 Min

We will use this code to Custom CSS box

#collection-6673f2e18432c25013aee99f {
div.header-nav-item:nth-child(5), div.container.header-menu-nav-item:nth-child(5) {
pointer-events: none;
}
}

How To Make Nav Link Unclickable 03 Min

#3. Suppose you need to make an item in Folder Dropdown unclickable, for example item: Form Block

How To Make Nav Link Unclickable 04 Min

We will use this CSS code

#collection-6673f2e18432c25013aee99f {
div.header-nav-item:nth-child(6) div.header-nav-item--folder:nth-child(7) {
pointer-events: none;
}
[data-folder="/sections"]>div>div:nth-child(7) {
pointer-events: none;
}
}

How To Make Nav Link Unclickable 05 Min

Note:

How To Make Nav Link Unclickable 06 Min

and /sections in [data-folder=”/sections” is Folder Dropdown URL

How To Make Nav Link Unclickable 07 Min