Using: SP2013 Online
On our site I have the quick launch menu disabled and the tree view enabled. I have then hidden any lists I did not want to appear in the treeview using Sharepoint Designer. However I have noticed that any app I install on the site is appearing in the tree view as well (as a subsite). I have gone to Site Settings -> Navigation to delete it from the structural navigation (they were under Current), but that does not seem to make any difference.
Can anyone tell me how I can hide those entries from the treeview?
Thanks
I have found a somewhat involved and crude solution, but it seems to work (for now).
* Open the page in Firefox, right click on the first link in the treeview.
* Select ‘Inspect Element…’
* In the inspection window right click on the table row containing the inspected element
* Select ‘Copy Unique Identifier’
* Edit the page containing the treeview (in my case only the site collection home page)
* Add a Script Editor webpart
* Add <style></style> tags and paste the unique identifier in between them.
* Add { DISPLAY: none } behind the identifier
When done it should look something like this:
<style>
#ctl00_PlaceHolderLeftNavBar_WebTreeViewV4 > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) { DISPLAY: none }
</style>
The table:nth-child element refers to the line that needs hiding, so for instance if you would want to hide the 5th line of the menu it would have an index of 5.
As I said it is a little crude, but for now it works. If anyone knows a better way of doing this, please let me know.