How to Change Title / Logo part in Default theme

Started by Ivan Minic, August 01, 2005, 08:42:20 AM

Previous topic - Next topic

mushroom-eater

great post. thanks for sharing. this is very informative

big_wannabe

Quote from: Ivan Minic on August 01, 2005, 08:42:20 AM
I see some people need help with this, so, here is a little tutorial.

Open /Themes/default/index.template.php

Part 1: Kill logo

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>'



Part 2: Change color of title:

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;"><font color="#FF0000">', $context['forum_name'], '</font></span>';

This example is with Red
My suggestion is to use colors from Few colors that look very nice with SMF default template
Part 3: Center title:

Find:
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

Replace
// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<center><span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span></center>';



I need more basic help than this...

how do I "open" this file?

frankystar

#42
Thank you mister Ivan for helping me :D
Been looking for a tutorial on how to change logo and your post answered my question thanks a bunch

This is my site have a look the logo is a bit larger what do you think

web.net.ph


monker

Hi I want to replace the top section where the logo.png is with the header file that is on the rest of my site.  Is this where I put include("header.php"); ? I tried that and I got a parse error.

echo '
<div id="header">';
echo '
<a href="', $scripturl, '"><img src="', $settings['images_url'], '/logo.png" alt="The Glen Morris Mercenaries" /></a>';

rick917

Ok I am a complete novice to developing, website design, etc etc.  However I just downloaded the forum software and want to change the title/logo area so that users can click on it or another link to go back to my main webpage.  HELP!!!!  How do you do that? Simply please... :-[

shadow82x

Quote from: rick917 on January 26, 2009, 12:57:13 PM
Ok I am a complete novice to developing, website design, etc etc.  However I just downloaded the forum software and want to change the title/logo area so that users can click on it or another link to go back to my main webpage.  HELP!!!!  How do you do that? Simply please... :-[
Welcome to SMF,
Give this mod a try - http://custom.simplemachines.org/mods/index.php?mod=1381.

After downloading simply go into Admin -> Packages -> Download Packages -> Upload :)
Colin B
Former Spammer, Customize, & Support Team Member

chamelisa

How may I change the background color (blue gradient in default theme) to an image?

greystonesguide

HI
Trying to put link on logo back to website and have tried loads of different variations but nothing has worked yet. version 1.1.8

andy40

hi i cant find any of this info in my index.template.php and want to put a banner in the centre can anyone help

coldy316

I just did it myself only thing is that I decided to leave the smf logo in and added
my server host link so memebers and visiters can see what host i'm using you can
view it here: http://www.coldyshangout.com/index.php

Would you believe it that i live in gods country
Australia

Stirlo

Quote from: ccbtimewiz on August 22, 2008, 01:57:03 AM
You'll be wanting this section:

<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />

And to put it to the left, you'd do:

<div align="left"><img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" /></div>

Or you can remove it. Up to you.

you just change the /smflogo.gif to your file :) works, thanks

sweetkim

Hey everyone Thank you for making such a great community for SMF support!  I have been lurking around for a few days now and you people "ROCK"!

I am also having that parse error.  I downloaded the index.template.php and made the changes then ftp'd it up and it "parsed"  I am not all that savy but learning.  I see in the modify themes area that you can access the index file for the themes you are not currently using but not the one you are using.  So I have a couple Q's

1.  How do I access the SMF Default Theme - Core index.template.php to make the title changes?  My Simple goal is to replace the SMF logo with the name of my website.

2.  This is what I am "looking for"    echo '
               <img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

THIS IS WHAT I FIND:     echo '
            </td>
            <td align="right" class="catbg">
               <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />

So I am super confused.  I know it has to be easy, right?...LOL  Any help is much appreciated!
SweetKim
www.sweets-syndrome.com

adhie_bz

HI all........I use smf 1.1.10 and i use greenbox themes for my forum...My problem is..How to change logo size height and width..I was search some solution but My logo still a little..

Note: I want to change logo width at full header and adding logo heigt..

Many thans for your reply

Akyhne


adhie_bz

I'm sorry if I'm in wrong room....Thanks for your attention

Antechinus


tripl3r

OK guys Really need help with this I don't want any title or title background or default smf logo,, I have want this image with transparent background located here http://www.disciplesofannihilation.com/i/forumbanner.png as my logo for my forum.

heres my index.template.php:
http://www.disciplesofannihilation.com/various/index.template.rar

Please some one do it for me im so lost nothing listed is init,, as im using custom themes etc,,

coldy316

will this work on the new smf version 2.0 RC2  and is it set up differant at all

I just want to remove the logo image only..  also cant i just go into ftp then to here

    forum/Themes/default/images/smflogo.png   and remove it that way

Would you believe it that i live in gods country
Australia

Arantor

You could just remove the image but you'll only get errors in the error log since the HTML will still call for it.

As for this tip working on RC2, are you using Curve or another theme? It will still work on Curve since Themes/default/images/smflogo.png is still its location.

Advertisement: