SharePoint list hide see all

TEST YOUR SMARTS
Which of the following retains the information it's storing when the system power is turned off?
  • ROM
  • CPU
  • RAM
  • GPU
Submit »
88% of IT pros got this right.
Challenge
×
Get answers from your peers along with millions of IT pros who visit Spiceworks.
Join Now

Hello, we're using Sharepoint from office 365.

I'm having a bit of an issue trying to remove the "site contents" button from the Quick Launch side bar. I disabled the side bar through the site settings, but for some reason it leaves this one link.

Is there any way to remove it? I've googled a lot of ways to do it, but none of them pertain to Sharepoint online.

Thank you in advance. Picture Below of left side bar.


Best Answer
Jalapeno
OP
DNAsanders
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Nov 17, 2016 at 00:13 UTC

Try manually typing the code in.

I tried copying my text from above and pasting it, and it didn't work for me either.

As soon as I removed the #sideNavBox and typed it back in, it worked.
Must be some weird formatting.

Dan

Edit: copying this should work:#sideNavBox { display:none; }

View this "Best Answer" in the replies below »

10 Replies

· · ·
Jalapeno
OP
DNAsanders
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Nov 15, 2016 at 22:47 UTC

You have to hide the quick launch through CSS.

If its just for one page add a Script Editor to the page with the following in it:

 #sideNavBox { display:none; }
If you want to change the margin of the content you could add something like
#contentBox {margin-left:20px;}
0
· · ·
Jalapeno
OP
Doyle1 Nov 15, 2016 at 22:56 UTC

Does it matter where I insert it? I just clicked onto the first webpart and inserted the code on the homepage.

When I type in the code in I can actually see it moving the margin as I type it in it actually moves the margin, but when I hit save, it reverts and changes the code to this for some reason:


Again I'm selected the code and choosing embed code.


0
· · ·
Jalapeno
OP
DNAsanders
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Nov 16, 2016 at 00:49 UTC

You put the code in a web part named "Script Editor" add that web part to the page first.

SharePoint removes code placed in the page directly

0
· · ·
Jalapeno
OP
DNAsanders
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Nov 16, 2016 at 02:14 UTC

Edit Page > Insert Web Part > Media and Content > Script Editor - Add

Edit Script Editor Web Part > Click "Edit Snippet" - Paste code in and Save.

You could rename WebPart to something like "Hide Quick Launch"

0
· · ·
Jalapeno
OP
Doyle1 Nov 16, 2016 at 20:05 UTC

Hmm I followed those directions exactly, and it's still showing the site contents as shown below:


Result: No change


0
· · ·
Jalapeno
OP
Best Answer
DNAsanders
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Nov 17, 2016 at 00:13 UTC

Try manually typing the code in.

I tried copying my text from above and pasting it, and it didn't work for me either.

As soon as I removed the #sideNavBox and typed it back in, it worked.
Must be some weird formatting.

Dan

Edit: copying this should work:#sideNavBox { display:none; }

0
· · ·
Jalapeno
OP
Doyle1 Nov 17, 2016 at 00:21 UTC

That did it! Thank you very much! :D

0
· · ·
Jalapeno
OP
Doyle1 Nov 17, 2016 at 00:24 UTC

I can create another post for this, but I figured unless you knew off the top of your head, is there a way way to move scrunch the webpart zones closer together?

For example the layout for this page has two columns for the webparts. The right webpart can be moved over to the left, because the left is really small.

I'm guessing this is another code I'll have to embed?

0
· · ·
Jalapeno
OP
DNAsanders
This person is a verified professional.
Verify your account to enable IT peers to see that you are a professional.
Nov 17, 2016 at 03:09 UTC

When you Edit the page, there is a "Text Layouts" button in the format layouts ribbon.

Short of switching up that view, you could do some CSS changes on the page or create your own Page Layout through the Design Manager.

To find out what to change in CSS I always use my browsers F12 tools.
Chrome is good for this. Hitting F12 and then using the Select an Element tool lets you see what Classes and IDs each element has to reference it and change widths Etc.

Its hard to tell from your screen shot what layout you are using.

Edit: from your screen shot you have a comment showing, I think if you hover over your name or picture it may generate a fly-out to the right which could be why there is a large gap. Again you could hid this fly-out through CSS, but could be difficult.

0
· · ·
Pimiento
OP
leiverespinoza Aug 9, 2017 at 14:51 UTC
1st Post

I was having the same issue as others, copy/pasting the multiline thing was not working.

Once I copied and pasted the statements in one single line, everything worked.

Thank you all!

THIS IS THE SOLUTION YOU HAVE TO COPY/PASTE:

#sideNavBox { display:none; }

0
· · ·

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.

Video liên quan

Chủ Đề