To Remove Onclick form Buttons so that Lightframe Works
Thu Feb 01 2024 14:52:16 GMT+0000 (Coordinated Universal Time)
Saved by
@Shira
<script>
document.addEventListener('DOMContentLoaded', function() {
// Select all <a> tags with the specified href and class
var links = document.querySelectorAll('a[href="https://fareharbor.com/embeds/book/vrxtra/?full-items=yes"].wp-block-button__link');
links.forEach(function(link) {
link.removeAttribute('onclick');
});
});
</script>
content_copyCOPY
Comments