Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: jamz on May 23, 2009, 12:45:12 PM

Title: [Tip] Centering the forum logo - This is how you can do it
Post by: jamz on May 23, 2009, 12:45:12 PM
I added this topic so it might be easier to find when searching about logo centering

This might have been posted but here is how to center the forum logo..

Open your index.template.php file as search for this:

<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

And change to this:

<div align="center"><img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" /></div>';

L8R

Jamz
Title: Re: [Tip] Centering the forum logo - This is how you can do it
Post by: shadow82x on May 23, 2009, 05:55:09 PM
Topic has been moved to Tips and Tricks (http://simplemachines.org/community/index.php?board=72.0).

You should also mention this will only work on the default (core) theme and variations of it.

Thanks for sharing :)