johnay Posted August 8, 2020 Share Posted August 8, 2020 Site URL: https://coconut-hypersphere-nmr5.squarespace.com/config/ I currently have a link in my header navigation that I have made unclickable on my desktop version of the site however on the mobile it is still clickable. I want to make it also unclickable on the mobile site, Any help would be greatly appreciated. password - johnay Link to comment
sonny.oram Posted August 8, 2020 Share Posted August 8, 2020 Applying pointer-events: none; to the class should do the trick. Link to comment
johnay Posted August 9, 2020 Author Share Posted August 9, 2020 10 hours ago, sonny.oram said: Applying pointer-events: none; to the class should do the trick. @sonny.oram I have added that code ( shown below ) and it only makes the desktop link unclickable, on the mobile it is still clickable. .header-nav-item [href="/new-page-1"] { pointer-events: none; } Link to comment
tuanphan Posted August 9, 2020 Share Posted August 9, 2020 Mobile menu has different class. Use this CSS for mobile .container.header-menu-nav-item a { pointer-events: none; } 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
Guest Posted December 10, 2020 Share Posted December 10, 2020 Wondering I have put his on my site and it works but I only want it to work for desktop. a.folder-toggle-label [href="/boys"], a.folder-toggle-label [href="/girls"] { pointer-events: none; } I would still need see not have this for mobile and tablet 😕 Any update on what to do to only effect desktop and not mobile? Link to comment
creedon Posted December 10, 2020 Share Posted December 10, 2020 @akytogo Please post the URL for your site. It is hard to help you when we can't see your site. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. We can then take a look at your issue. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Guest Posted December 10, 2020 Share Posted December 10, 2020 @creedon right now I have disabled the css for this bit because it was affecting both desktop and mobile Link to comment
creedon Posted December 10, 2020 Share Posted December 10, 2020 @akytogo This should take care of only allowing the effect on desktop. @media only screen and ( min-width: 769px ) { a.folder-toggle-label [href="/boys"], a.folder-toggle-label [href="/girls"] { pointer-events: none; } } I was unable to test it as there appears to be no menus with references to /boys or /girls. Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Guest Posted December 10, 2020 Share Posted December 10, 2020 thanks @creedon looks like this code label.folder-toggle-label { pointer-events: none; } That I have is shutting down the main folder from being clickable So I would need to let my folders in the nav for boys and girls on mobile be clickable. Sorry about the above, hope that makes sense Link to comment
Guest Posted December 10, 2020 Share Posted December 10, 2020 @creedon Got it with your help Ending up putting @media only screen and ( min-width: 769px ) { label.folder-toggle-label { pointer-events: none; } } Thanks so much Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.