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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -