wordpress - Remove href link from images with overlay -
i need turn products listed in http://srougi.biz/gb/portfolio_listing/ non-clickable items, without loose overlay effect. , since wordpress site, can't change code, option css. i've tried put pointer-events:none , cursor:default in image, lost overlay effect. appreciate help.
to deactivate links in case, need add javascript code.
js: add before </body>
in theme file: footer.php
<script> var thumbnails = document.getelementsbyclassname('thumbnail'); for(i = 0; < thumbnails.length; i++){ thumbnails[i].getelementsbytagname("a")[0].setattribute("onclick", "return false;"); } </script>
css: style remove pointer link.
.thumbnail { cursor: default !important; }
Comments
Post a Comment