Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: mSohail - heinäkuu 31, 2011, 12:51:03 AP

Otsikko: how to have custom logo?
Kirjoitti: mSohail - heinäkuu 31, 2011, 12:51:03 AP
How can i have custom log, in place of theme's default logo?


My forum URL: emoneycircle.com
SMF Version: 2.0
Otsikko: Re: how to have custom logo?
Kirjoitti: Sir Osis of Liver - heinäkuu 31, 2011, 01:00:42 AP
The logo is specified in /css/index.css here:



#logo a {
position: absolute;
top: 30px;
left: 20px;
display: block;
width: 256px!important;
height: 61px!important;
cursor: pointer;
background: url(../images/img/logo.png) no-repeat!important;
}




You can upload your logo as /images/img/logo.png to replace the default logo, or use your own filename.

Otsikko: Re: how to have custom logo?
Kirjoitti: mSohail - heinäkuu 31, 2011, 05:02:05 AP
I nevigated to Themes settings, selected the desired theme and i got two options.
    Modify the index template. (the main template)
    Modify the stylesheets. (colors, fonts, etc.)
These two editing tools doesn't have any option to add custom logo. Where can i find /css/index.css ?
Otsikko: Re: how to have custom logo?
Kirjoitti: mashby - heinäkuu 31, 2011, 08:03:08 AP
You would be better off using FTP and downloading/editing locally that file. The one you need is css/index.css. What is the size of your logo? If it is different than this:
width: 256px!important;
height: 61px!important;
You will want to adjust those values. And don't forget to change or overwrite the logo image.
Otsikko: Re: how to have custom logo?
Kirjoitti: [unplugged] - heinäkuu 31, 2011, 09:22:10 AP
Upload whatever image you want to use for your logo. Then go to Admin > Configuration > Current Theme and find Logo image URL: and type in the path to the image you just uploaded. Click save.  ;)
Otsikko: Re: how to have custom logo?
Kirjoitti: mSohail - elokuu 01, 2011, 11:14:08 AP
Lainaus käyttäjältä: SunKing - heinäkuu 31, 2011, 09:22:10 AP
Upload whatever image you want to use for your logo. Then go to Admin > Configuration > Current Theme and find Logo image URL: and type in the path to the image you just uploaded. Click save.  ;)
When i use default theme i can see this option Logo image URL:
But when i use other theme that i upload, i can't see this option. :(
Otsikko: Re: how to have custom logo?
Kirjoitti: Illori - elokuu 01, 2011, 11:29:44 AP
then your theme does not support it, if you provide a link to your forum we can tell you exactly how to do it without guessing all day.
Otsikko: Re: how to have custom logo?
Kirjoitti: Sir Osis of Liver - elokuu 01, 2011, 02:49:58 IP
.... or attach your index.template.php.

Otsikko: Re: how to have custom logo?
Kirjoitti: mashby - elokuu 01, 2011, 09:23:42 IP
The OP already provided a link to his site which is great. And the theme the OP is using doesn't support theme settings, so this is really all that is needed:
LainaaYou would be better off using FTP and downloading/editing locally that file. The one you need is css/index.css. What is the size of your logo? If it is different than this:
width: 256px!important;
height: 61px!important;
You will want to adjust those values. And don't forget to change or overwrite the logo image.