KatJarv Posted August 27 Share Posted August 27 Hello, I'd like to make the fourth item in this portfolio grid unclickable. I've tried a few pieces of code that disable the link, but also disable hover. I'd like to have hover remain, but not click the project until the case study is ready. https://atelieroleana.com/portfolio-2 Link to comment
tuanphan Posted August 28 Share Posted August 28 Which item are you referring to? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
KatJarv Posted August 28 Author Share Posted August 28 The fourth item in the Portfolio, on the bottom right. It currently is labelled "Name of Project - Coming Soon" on hover. Link to comment
sqsp_guru Posted August 28 Share Posted August 28 @KatJarv This needs JavaScript to disable it, we cant achieve that via CSS otherwise the rollover effect done. put below code into Footer Code Injeciton. <script> const disableLink = document.querySelector('#gridThumbs.portfolio-grid-overlay .grid-item:nth-child(4)'); disableLink.addEventListener('click', function(event) { event.preventDefault(); }); </script> Please like and upvote if you found my comments helpful. Cheers 🙂 Agha Waqas (sqsp guru) Squarespace Website Developer Contact me: https://sqspguru.com or hello@sqspguru.com ☕ Did I help? Buy me a coffee? (thank you!) 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