Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Issue hiding first-child item in navbar folder


SHE_WebDev

Question

Site URL: http://https/www.sheworldhealth.org/

I am trying to hide the "campaigns lp link" item from the "Campaigns" folder of my navigation bar as shown below:

1077817219_2020_08.19-18.30(2).thumb.png.3e056d4d95d2d9a233675b011777786d.png

This is the code I am using right now in my Design>Custom CSS area. It is not working:

span.Header-nav-item.Header-nav-item--folder:fourth-child(2) a.Header-nav-folder-item:first-child {
display: none;
}

The "campaigns" folder is the fourth child in the main navigation bar but its the third folder. I tried using third-child, 4th-child, 3rd-child and none of these seem to work. The "campaigns lp link" child of that folder is a page link. Do I have the CSS syntax wrong?

 

Edited by SHE_WebDev
Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

Create an account or sign in to comment

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


×
×
  • Create New...