1
kanexpo
Header
  • 2004/6/9 13:12

  • kanexpo

  • Just popping in

  • Posts: 1

  • Since: 2004/6/9 1


hi

does anyone know how to remove the XOOPS banner top left? it blocks my banner from fully extending!

Thanks

2
Mithrandir
Re: Header

the logo you mean?

Edit your themes theme.html

3
Anonymous
Re: Header
  • 2004/6/9 15:47

  • Anonymous

  • Posts: 0

  • Since:


Are you talking about the flashing banner? If so, you go to Admin>preferences> There is an option to turn off the banner.

Otherwise if you do have to change the html file and remove the header itself (the blue header with the XOOPS logo).


4
JMorris
Re: Header
  • 2004/6/9 17:04

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


If you want to replace the XOOPS logo from the default theme, you can go about it in two ways...

Method 1
=========
1. Rename your logo as logo.gif
2. Open theme.html in notepad or an html editor
3. Look for the following code
<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" alt="" /></a></td>

4. Change the width and height values to match your logo's demensions.
5. Save the file
6. Empty the contents of templates_c to remove the theme cache (otherwise your changes won't show up)
7. Test your theme

Method 2
========
Step #2-3 from above
4. Change the name of the graphic to the name of your logo and edit the height and width appropriately
Steps #5-7

If you are referring to the banner that is displayed near the center of the header, you could do as mentioned above (disable banners from admin control panel), or you could relocate the banner to another place in the theme. The following example relocates the banner from the header to the top of the center column....

1. Open theme.html in notepad or an html editor
2. Look for the following code
<td id="headerbanner"><{$xoops_banner}></td>

3. No replace <{$xoops_banner}> with &nbsp; (this will create a space so that your theme stays properly aligned)
4. Now look for the following code
<td id="centercolumn">

        <!-- 
Display center blocks if any -->
        <{if 
$xoops_showcblock == 1}>

5. Just between <td id="centercolumn"> and <!-- Display center blocks if any --> insert the following code
<table align="center" cellspacing="0" width="100%">
  <
tr><td id="headerbanner"><{$xoops_banner}></td></tr></table>

Your final code should look like this
<td id="centercolumn">
<
table align="center" cellspacing="0" width="100%">
  <
tr><td id="headerbanner"><{$xoops_banner}></td></tr></table>
        <!-- 
Display center blocks if any -->
        <{if 
$xoops_showcblock == 1}>

6. Save the file
7. Empty the contents of templates_c to remove the theme cache (otherwise your changes won't show up)
8. Test your theme

You can use a similar process to relocate your banner just about anywhere you want.

Hope this helped.

EDIT: If you decide to relocate your banner you may want to open style.css and look for td#headerbanner, then delete the portion background-color:#...... (the #...... will be a hex number in the form of #1234AB or something like that).

Sorry, I forgot about that one.

5
JohnCVermont
Re: Header

Great Post ... Save this in a special place!

Login

Who's Online

171 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits