Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Change banner

  Asked By: Grace    Date: Jan 13    Category: Sharepoint    Views: 13752

I know quite a silly question for all you experts…but please do tell me…

How can I change the banner of my site which appears at the top?

Like I want to add some picture and change colors and size of the banner.



7 Answers Found

Answer #1    Answered By: Patricia Richardson     Answered On: Jan 13

If you look at the templates in the \60\Template\1033 directory,
you'll find the header / banner  section of the page. You can edit
each page to include the images or the logos you want, or you could
just create a user control and add  it to each page, that way you'll
only have one source to edit when you have to change  the header

In my case, I created a user control called CHCASPHeader.ascx. In
it, I have the html to make the banner section of my pages like I
want them to appear. On each template page, I have to register it
through the following declaration:

<%@ Register TagPrefix="uc4" TagName="CHCASPHeader"
Src="/CHCASPHeader.ascx" %>

Then, I can just reference it inline through the following statement:

<uc4:CHCASPHeader id="CHCASPHeader1" runat="server" />

Answer #2    Answered By: Damon Garner     Answered On: Jan 13

For us newbies, could you describe or provide the code for the .ascx file? I've inserted banners directly into pages, but have never created a user control to do this before.

Answer #3    Answered By: Christop Mcfadden     Answered On: Jan 13

There are several steps but I'll make this brief:

First, just write the HTML for the banner  as you would in any
editor. In my case, I use a table that gets inserted in the first
row of the page. Then, save it as an ascx file and put it in
\Inetpub\wwwroot and in the \layouts\1033 directories. You'll have
to register it on all pages by <%@ Register TagPrefix="uc4"
TagName="CHCASPHeader" Src="CHCASPHeader.ascx" %> for the admin
pages (all the pages that sit in the layouts\1033 directory) and <%
@Register TagPrefix="uc4"
TagName="CHCASPHeader"Src="\CHCASPHeader.ascx" %> for the files in
the template directory.

Then, to call it as I have it declared, you simply insert this tag
where the code would normally be:

<uc4:CHCASPHeader id="CHCASPHeader1" runat="server" />

It's the equivalent of using an include in basic html pages but it
gives you two points of maintenance instead of hundreds.

Answer #4    Answered By: Stefanie Ruiz     Answered On: Jan 13

This is easier than I imagined. I can certainly live with maintaining two pages vs.. managing all of them separately!

Answer #5    Answered By: Damon Garner     Answered On: Jan 13

Or, to just change  the logo image in SPS,

Go to ‘Site Settings’, then in ‘General Settings’ select ‘Change portal site  properties and SharePoint site creation settings’. There is a setting there - ‘Custom Portal Site Logo’ where the url for the image file can be set. This logo setting is used on all the SPS pages. Also, by setting a custom CSS here you can show, hide or manipulate the page headings to a fair extent without having to modify any of the underlying aspx pages.

Answer #6    Answered By: Royce Orr     Answered On: Jan 13

On a related topic,

I am doing some work to make an SPS 2003 site  look quite different from the default. This is involving modifying the css files but also adding a custom web control to the banner  of each page. The only problem with this (well, the main problem then) is that looking at the ‘C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE’ there are ~500 aspx files. I’ve looked at them, there are a lot that are duplicated (site defs for example), but the admin pages are a bit of a mess – inline aspx code, hardcoded(!) logo paths and some build entirely using SPSWC:PageSections controls.

Bearing in mind that’ll I’ll need - to a degree – modify all of these pages, has anyone written anything or used any tools to do anything like this to SPS2003? I’m thinking that it may be possible to modify groups of pages using XSLT, but if anyone has actually done something like this already, I’d love to know how you got on…

Answer #7    Answered By: Laura Walker     Answered On: Jan 13

I tried some design chances on a WSS 2 site.. using just CSS I was able to hide the icon in the upper left and overlay our corp logo, and add  overlay other background images over the quicklauch and top banner  area, but the only issue is alot of the other ASP pages (document libraries, item editing) don't use the same CSS classes or ID's so changes are quite as universal as I'd hoped. I know nothing about ASP so I tried to do everything I could with CSS, but it didn't really work out...

Didn't find what you were looking for? Find more on Change banner Or get search suggestion and latest updates.