MyBB Community Forums

Full Version: What template do I use to center logo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The default is left and I want to move the logo to the center on one of my skins and I cannot find where to make the change.
Admin CP>>Templates & Style>>Templates>>*Your theme*>>Header Templates>>Open 'header'.

Find:
			<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:
			<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>

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

That is the code in the header so I would just replace it with the code you have given me then?
In that case just replace with:
<div id="header" style="text-align: center;">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
</div>

And it should work Wink
If not post again and I will get back to you tomorrow Smile
Thank you so much it worked... Smile I again have learned something LOL
Haha, no problem Wink