TomS43 Posted February 27, 2023 Share Posted February 27, 2023 Hey guys, I am trying to unlink a page in the projects page and hoping someone can help. Basically they are 'coming soon' so I want the hover to still work but I don't want people to be able to click through to the blank page. Thanks for any hep in advance https://garlic-clavichord-wjwl.squarespace.com/projects PW: maho Link to comment
Solution tuanphan Posted March 5, 2023 Solution Share Posted March 5, 2023 Add this to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('div#gridThumbs a.grid-item:nth-child(n+4)').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
TomS43 Posted March 6, 2023 Author Share Posted March 6, 2023 @tuanphan you are a legend! thank you Link to comment
TomS43 Posted March 6, 2023 Author Share Posted March 6, 2023 Just for the future, what part of that code specifies which thumbnail it turns the link off too? Link to comment
tuanphan Posted March 8, 2023 Share Posted March 8, 2023 (edited) Each project will have a link. The link is specified by the attribute: href The code will remove href attribute and nth-child(n+4) will target item 4, 5, 6.. Edited March 8, 2023 by tuanphan 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