• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

How to hide left content bar in a sub site?

Hi,

I have a mother site with many  sub sites, I will need to remove the left content bar in one of the sub sites, it should be applicable for the entire site collection
Can somebody guide me on how to do this?

Regards
0
beesoo00
Asked:
beesoo00
  • 3
  • 2
1 Solution
 
TEEDACommented:
Do you mean the Quick Launch?
0
 
ufarooqCommented:
I assume by left content bar you mean Quick launch . in order to hide quick launch on any site do this
add a Content Editor Web part on the site in any zone . You can add it any where you want it will be hidden web part , Edit the web part and paste this code in the box

<style>
#s4-leftpanel{
display:none
}
.s4-ca{
margin-left:0px
}
</style>

if you want to do it for the whole site collecion this can be done by modifying master page you need SharePoint designer for that purpose. Let us know if you want to modify the master page .
0
 
beesoo00Author Commented:
Thanks Farooq for your reply,

I have added a content editor web part straight behind contact person on the right, and copied the code in the source editor field, nothing happens.  ( My picture disappear so it does work, I guess I need to put the web part somewhere else to remove the Quick launch .

Any more help please ? :)

Thanks In advance
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
beesoo00Author Commented:
Farooq,

I have attached for you my team space page , if you can mark for me on it where i can add the code you provided me to import in source code box,

Thanks alot for your time ....
page.jpg
0
 
beesoo00Author Commented:
0
 
ufarooqCommented:
OK . the code i send you is for sharepoint 2010 only

in your case yoou will add this code in content editor web part

<style>
.ms-quicklaunch
{
display:none;
}
.ms-navframe
{
display: none;
}
</style>


on the page.jpg , click on Source Editor, copy and paste this code and hit OK , hit OK again .
Exit Edit Mode

Try this and let me know if you need more help .
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now