Mybb Help?

Vader

Resident
Joined
May 30, 2009
Messages
672
Reaction score
0
FP$
576
Anyone know how to center a logo in Mybb? I know you have to edit something.
 
How to change your forum's logo

1. Login to your MyBB administration panel.
2. Go to the section named "Templates & Style" and click "Templates" on the left.
3. Click the templates name you are using "XXX Templates".
4. Open the "Header Templates" then click the template named "Header".



Change

<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

To

<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="THE LINK TO YOUR IMAGE" title="{$mybb->settings['bbname']}" /></a></div>

Originaly posted on: MyBBNew Support forums. [post with pictures]
 
How do I center it? I know how to add it. Appreciate the help though thanks.
 
Try adding this tag around your code:

Code:
<div align="center">YOUR CODE</div>
 
Find:
Code:
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

Replace with:
Code:
<div class="logo" align="center"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

Check your CSS to see make sure float: left/(right) isn't in your logo class.
 
Loading said:
John is right:
Code:
<div align="center"></div>

Sorry for the mistake.

No problem. Thanks all for the quick help appreciate it.
 
Back
Top Bottom