Is there any way to disable a link using CSS?
I have a class called current-page and want links with this class to be disabled so that no action occurs
current-page
It's possible to do it in CSS
.disabled{ cursor:default; pointer-events:none; text-decoration:none; color:black; }
Google
See at:
Please note that the text-decoration: none; and color: black; is not needed but it makes the link look more like plain text.
text-decoration: none;
color: black;