At the top of web page I have a script so links don't work on the page.
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<script>
$(document).ready(function () {
$('.portfolio-featured-image, .portfolio-entry-title').click(function () {
return false;
});
});
</script>
Is there a way to make one particular link on the page not obey the script? For example make one of the page's many
<a href="url">link text</a> a working clickable link but have all the others obey the script and be non-clickable?
falseif the click was on the live link, which would likely mean evaluating the click event.