Jump to content

Hide some pages in Member Area navigation

Recommended Posts

Site URL: https://themillgym.squarespace.com

Hi, 

I am building multiple member areas for a client. But i don't want to display every page. Basically I am first building a blog page and then linking the blog posts to another page because I can better customise what we are trying to display. So I want all the blog pages in the member area hidden in the navigation. I know I can hide the page like normal but then all the links to the other page get broken.

Does anyone know how I can customise what appears in the navigation?

Thank you

Ryan

Link to comment
  • Replies 17
  • Created
  • Last Reply

Top Posters In This Topic

24 minutes ago, ryan.sander said:

Site URL: https://themillgym.squarespace.com

Hi, 

I am building multiple member areas for a client. But i don't want to display every page. Basically I am first building a blog page and then linking the blog posts to another page because I can better customise what we are trying to display. So I want all the blog pages in the member area hidden in the navigation. I know I can hide the page like normal but then all the links to the other page get broken.

Does anyone know how I can customise what appears in the navigation?

Thank you

Ryan

What is your protected password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 1 month later...
  • 5 weeks later...
On 3/8/2022 at 7:47 AM, ninnaamora said:

Did you get an answer? I was planning to do the same thing, but saw that the pages were adding to the navigation too. I was told there wasn't a way to have that similar "not linked" section in the member areas. 

Hi no I never got an answer. But as a workaround I used the portfolio section which ended up being a good solution.

Link to comment
  • 10 months later...

 

I found this to work for hiding individual pages from the member nav.

just replace the urlslug with your page's url slug.

You need to do both to work on desktop and mobile nav

 

/*HIDE MENU ITEMS*/

 

.header-nav-list [href="/urlslug”] {

    display: none;

}

.header-menu-nav-list [href="/urlslug”] {

    display: none;

}

Link to comment
  • 1 month later...

I got this to work on my site by injecting code into the Header under SETTINGS/ADVANCED/CODE INJECTION. Replace urlslug with the urlslug of the page you wish to hide.

<style>
/* hide page from member area navigation on desktop */
.header-nav-item--folder [href="/urlslug"] {
   display: none !important;
}
 

/* hide page from member area navigation on mobile */
@media (max-width: 640px) { /* or any other mobile breakpoint */
  .header-menu--folder-list [href="/urlslug"] {
    display: none;
  }
}
  
</style>

Edited by audreyburke
Link to comment
  • 10 months later...
On 2/22/2024 at 4:55 AM, ChristinaDean said:

Can someone please help me with this? It was working, glitched,  and now is not working at all.  I'm trying to hide about 8 pages within the membership page. When I use this code, it is breaking the formatting throughout the site/header/announcement bar, etc.

https://burgundy-helicon-pgby.squarespace.com/

Where did you add the code? If you use <style> code into Custom CSS box, it will cause syntax error and all current CSS will stop working

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
  • 3 weeks later...
On 3/11/2024 at 2:43 AM, jallory said:

Hi, none of this is working for me... Looking to hide a course from the members area navigation... Any ideas?

Thanks!

Can you share link to site & let me know which item you want to hide? We can check easier

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
On 3/15/2024 at 2:39 AM, jallory said:

@tuanphan https://www.wiseheartpdx.org/member-site-home 

I would like to hide all of the 32 courses that say "Couples Part 1: _____," "Couples Part 2: _____," "Couples Part 3: _____," and "Couples Part 4: _____."

Thanks for your help 🙏

Can you take a screenshot? Or I think you will need to provide a test/a free account to access member navigation..

image.thumb.png.1f0afc508dc3868bf3e566415db75e66.png

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
On 3/21/2024 at 12:42 AM, jallory said:

@tuanphan Hi, thank you ~ there is a free sign up option on the page https://www.wiseheartpdx.org/member-site-home

Also, here is a screenshot

Screenshot 2024-03-20 at 10.41.02 AM.png

You can use this code to Website > Website Tools > Custom CSS

a.header-nav-folder-title[href*="85e7b"]+div>div:nth-child(n+19) {
    display: none;
}

image.png.68c844e654a83354531636d43a28fb19.png

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
On 3/25/2024 at 11:05 PM, jallory said:

@tuanphan Thank you so much for your help ~ I feel hopeful seeing that this is possible 🙏 However, I do need nth child 19, 28, 37, and 46 to be visible. The rest >19 I want to hide. Can you please help with adjusting the CSS for this? I tried on my own but was unsuccessful...

Use this 

a.header-nav-folder-title[href*="85e7b"]+div>div:nth-child(n+19) {
    display: none;
}
a.header-nav-folder-title[href*="85e7b"]+div>div:nth-child(19), a.header-nav-folder-title[href*="85e7b"]+div>div:nth-child(28), a.header-nav-folder-title[href*="85e7b"]+div>div:nth-child(37), a.header-nav-folder-title[href*="85e7b"]+div>div:nth-child(46) {
    display: block !important;
}

 

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

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.