It targets the current position of the FAQ link parent (last element -1). Having other elements between the FAQ link and the end of the list will make the CSS selector not target the proper element anymore.
But if you’re confident this part of the list won’t change, you can go for it.
also still not really clear what “everything” is. i kinda want to rename it to be more specific.
yea i was trying to use that method the first time and i had the data-link syntax wrong. i forgot the “-name” part and figured it was somehow not do-able. stupid me because that’s similar to how i did it with the old legacy menu. DOH thank you.
just as an aside, the child[ ] method is only usable for desktop view.
The problem is that all links are inside list elements that all have the exact same classes.
If you hide the link, the list element remains and takes place despite being “empty”.
Unless I’m missing something?
it will be so nice when changing the community section is fully operational in core. i did easily change the “community” title. but i’d like to change the order of elements. for example, in mobile view, the My Posts link is above Admin and Review, and therefore Review is in the … More section. my staff do not like this and i agree that mod controls should take precedence over My Posts. i should probably make a ux feature request topic but i know team is working on making that customizable to us in the future anyways.
i guess i can always hide the link to my posts and then move it to the global links section. i don’t know, i’m sure i’m trying to do too much with that menu.