Jump to content

Hide certain links in mobile hamburger menu

Go to solution Solved by Ziggy,

Recommended Posts

Hello,

I have currently used the attached code to hide certain links in the navigation which has worked fine for desktop however i can't remove it from mobile. Anybody able to help? Thanks

password to view site is - jxnproperty 

Screenshot 2024-04-07 223805.png

Link to comment
  • Replies 6
  • Views 677
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

10 hours ago, biz4 said:

password to view site is - jxnproperty 

Website URL?

You need this class to target the mobile menu links:

.header-menu-nav-item

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) 

 Did I help? Buy me a coffee?

Link to comment

Try this in addition to the CSS (inside the style tags):

.header-menu-nav-item[href="#faqs"] {
    display: none;
}

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) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

This should work:

.header-menu-nav-item:nth-child(2) {  
    display : none;
}

 

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) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.