Katberg Posted February 18 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
Solution nick_sh Posted February 19 Solution 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 Try new Squrespace ID & class finder Chrome Extension ✔ Supports Fluid Engine ✔ Generate Media Queries code ✔ Toggle IDs with Option / Alt ____ Hire me for SquareSpace development
WRJD Posted June 13 Posted June 13 Hello, I'm sorry I have the same issue. I just wanted a page to list clients with a hover-change background. I couldn't work out the non-portfolio option, so I gave in, only to discover you can't have more than 60 projects (I need 100) and you can't have multiple portfolios on one page. Disaster. After accepting I needed to reduce to 60 and use the portfolio page, I again got stuck as I could not turn off the portfolio links, and it clicks through to empty projects. I just want the background image to change without the possibility of clicking. I am at my wit's end. https://www.wrjdavis.com/portfolio-3 Please help, Will
tuanphan Posted June 15 Posted June 15 On 6/13/2024 at 10:52 PM, WRJD said: Hello, I'm sorry I have the same issue. I just wanted a page to list clients with a hover-change background. I couldn't work out the non-portfolio option, so I gave in, only to discover you can't have more than 60 projects (I need 100) and you can't have multiple portfolios on one page. Disaster. After accepting I needed to reduce to 60 and use the portfolio page, I again got stuck as I could not turn off the portfolio links, and it clicks through to empty projects. I just want the background image to change without the possibility of clicking. I am at my wit's end. https://www.wrjdavis.com/portfolio-3 Please help, Will To achieve hover-change background, you can follow this https://forum.squarespace.com/topic/304603-share-hover-image-change-section-background-color/ to remove link, you can use this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function() { $('a.portfolio-hover-item').removeAttr('href'); }); </script> 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment