Wednesday, July 9, 2008

Remove Quick Launch Bar

I recently created a Site Definition where the client did not want the Quick Launch bar to show up on the landing page but did want it on the rest of the pages.


In side the site definiton project, I opended up the defaul.aspx and added the following two lines of code.



One the opposide, if you want to add Quick launch to pages that do not have them by default, you can remove these two line.

This works great for site definitons. You can also modify pages after the fact but you will need to use SharePoint Designer.

5 comments:

marvin said...

Wow! this really helped me...i'm searching for this, very simple. no need for web parts (i'm on to custom .net pages) and sharepoint designer (which i really can't pull of to work).

Thanks

kashi said...

Thanks a ton! ur tip just made me look like a geek to my manager ;)

Anonymous said...

Sharepoint site: beautify your site by disabling "Quick Launch" bar at left of page, by adding following code as a "Content editor web part".


Click on "Site Settings"->"add webpart"->"add Content editor web part", then "Source editor link at right side of page", then add in following code:

< (REMOVE SPACES)style>

.ms-quicklaunch

{

display:none;

}

.ms-navframe

{

display: none;

}

< (REMOVE SPACES)/style>

Anonymous said...

Sharepoint site: beautify your site by disabling "Quick Launch" bar at left of page, by adding following code as a "Content editor web part".


Click on "Site Settings"->"add webpart"->"add Content editor web part", then "Source editor link at right side of page", then add in following code: Make sure to remove the tag "(REMOVE SPACES)" below

< (REMOVE SPACES)style>

.ms-quicklaunch

{

display:none;

}

.ms-navframe

{

display: none;

}

< (REMOVE SPACES)/style>

vllapi said...

I hsve tried to delete quicklaunch, it=s working.
But i also need to move to link bar to another okaceholder. IS it possible? If yes - how?