Katberg Posted February 18 Share Posted February 18 I've been trying for days now to remove the click through on this Portfolio page showcasing archival work. I want to keep the hover effect. I've been reading multiple help guides in here and elsewhere, but none of the codes I've found seem to work, and I even updgraded my plan to insert custom codind. Someone else in here had the same problem with this exact portfolio, but posted that he decided to something else, so I can't really figure out where to go from now. Can anyone help out here? Thanks! Kat Link to comment
justin.mabee Posted February 18 Share Posted February 18 Can you share a link to the site? Link to comment
Solution nick_sh Posted February 19 Solution Share Posted February 19 @Katberg try adding this to Code Injection <script> addEventListener("DOMContentLoaded", (event) => { document.querySelectorAll('section[data-section-id="65c38c2f3d8bf72234d2ac79"] a').forEach(link => { link.addEventListener('click', e => { e.preventDefault(); }) }); }); </script> Katberg 1 Hire me for SquareSpace development Link to comment
Katberg Posted February 19 Author Share Posted February 19 Thank you nick_sh! It worked! 🙂 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment