Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Center main banner.

Asked Modified Viewed 4,895 times
R
Rooger
R
Rooger 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

Just wondered if anyone knows how to or if there is a .php script for fusion that will center the banner on my fusion site. It doesn't have to be a script, but it would help...I'd rather have the code and where to put it, so I could customize it a little.

Thanks,

Rooger.
0 replies

6 posts

D
dfmurphy
D
  • Member, joined since
  • Contributed 84 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Wow ... I'm kinda new around here, but I've seen this question posed at least a gazillon times. Searching the forum posts for 'center banner' gives you everything you need.

But ... since I'm new I'll do more than just ream you over (that seems to happen every once and while around here), I'll give you a little hint.

Centering is theme specific. So, if your theme of choice doesn't center the banner, then you'll have to edit every theme.php you want to use.

Look in themes/theme.php for a line like this:

<td>$header_content</td>

and change it to:

<td align=center>$header_content</td>


At least that's how I did it. I suppose you could span style too. I don't really know for sure which preferred.
0 replies
R
Rooger
R
Rooger 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

dfmurphy wrote:
Wow ... I'm kinda new around here, but I've seen this question posed at least a gazillon times. Searching the forum posts for 'center banner' gives you everything you need.

But ... since I'm new I'll do more than just ream you over (that seems to happen every once and while around here), I'll give you a little hint.

Centering is theme specific. So, if your theme of choice doesn't center the banner, then you'll have to edit every theme.php you want to use.

Look in themes/theme.php for a line like this:

<td>$header_content</td>

and change it to:

<td align=center>$header_content</td>


At least that's how I did it. I suppose you could span style too. I don't really know for sure which preferred.


Cheers, not sure where I put it in the themes.php file, is it at the top of the tree...so to speak
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

In most cases you can center the banner for most (at least all standard themes) of your themes by just editing 1 file; subheader.php (located in root folder):

Find this code in the bottom and add code in red:
render_header("[color=red]<center>[/color]<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>[color=red]</center>[/color]");
0 replies
P
pekelpiel
P
Every shadow No Matter How Deep, Is Threatened By Morning Light.
  • Member, joined since
  • Contributed 139 posts on the community forums.
  • Started 37 threads in the forums
answered
Member

thanks Ken, great
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

@Murph, your answer was not wrong, and if one somehow finds it necessary to have that in the theme.php file, its ok. However Kens answer is the easiest to implement for all themes, since it applies to core code, not theme code.
0 replies
R
Rooger
R
Rooger 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Ken wrote:
In most cases you can center the banner for most (at least all standard themes) of your themes by just editing 1 file; subheader.php (located in root folder):

Find this code in the bottom and add code in red:
render_header("[color=red]<center>[/color]<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>[color=red]</center>[/color]");


Cheers Ken,

Worked a treat :D

Rooger
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet