RhiDaugs Posted September 13, 2022 Share Posted September 13, 2022 Site URL: https://www.901jets.com/901jetsourteam I need to disable the images in the gallery from taking site visitors to another page. I just want them to hover over the picture and see the text without being able to click on any of the images or leave this page without going back up to the main menus at the top or bottom. The gallery images are just for show but I don't know how to disable the link. Any and all help would be greatly appreciated. The SquareSpace representative said it would be possible with a little code, but that is outside my lane. Thank you! Link to comment
Ziggy Posted September 15, 2022 Share Posted September 15, 2022 Disabling pointer events is a good way to stop click-through, but you'll loose the hover effect. Check out this thread: Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
tuanphan Posted September 18, 2022 Share Posted September 18, 2022 On 9/14/2022 at 2:51 AM, RhiDaugs said: Site URL: https://www.901jets.com/901jetsourteam I need to disable the images in the gallery from taking site visitors to another page. I just want them to hover over the picture and see the text without being able to click on any of the images or leave this page without going back up to the main menus at the top or bottom. The gallery images are just for show but I don't know how to disable the link. Any and all help would be greatly appreciated. The SquareSpace representative said it would be possible with a little code, but that is outside my lane. Thank you! You can add this code to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('div#gridThumbs a.grid-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!) 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