Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: scottkahn on May 18, 2010, 05:05:04 PM

Title: want my logo at top left to link back to my homepage
Post by: scottkahn on May 18, 2010, 05:05:04 PM
Where do I edit the code so that my graphic in the top left corner of the forums (that replaces the Simple Machines logo) links back to my homepage when someone clicks it?

Thanks,

Scott
Title: Re: want my logo at top left to link back to my homepage
Post by: Yağız... on May 19, 2010, 07:46:00 AM
./Themes/{your_theme}/index.template.php
Title: Re: want my logo at top left to link back to my homepage
Post by: scottkahn on May 20, 2010, 03:06:23 PM
I guess I should have been more specific. I'm not a developer/programmer.

Where is the specific line of code, within that index.template file or otherwise, that needs to be modified, and how do I modify it so that my graphic, which IS showing up on the page in place of the SimpleMachines logo, links back to my website's home page? I'm not sure where to even find it within all that code!

Thanks -- I'm a newbie at this customization stuff.

Scott
Title: Re: want my logo at top left to link back to my homepage
Post by: Yağız... on May 20, 2010, 03:17:18 PM
Oh, sorry there was a better way :) Go to Admin > Current Theme > Site Slogan and put:
<a href="link"><img src="img url" alt="" /></a>
Title: Re: want my logo at top left to link back to my homepage
Post by: YogiBear on May 20, 2010, 06:45:43 PM
I'm sure there's already a mod for this called Clickable Banner or Click On Banner. It also gives the option for the smf logo to be clickable plus there's a click on logo mod Have a look in...


http://custom.simplemachines.org/mods/index.php (http://custom.simplemachines.org/mods/index.php)


PS Found it! It's this one...


http://custom.simplemachines.org/mods/index.php?mod=1370 (http://custom.simplemachines.org/mods/index.php?mod=1370)
Title: Re: want my logo at top left to link back to my homepage
Post by: Cheese Head on December 27, 2010, 08:42:03 AM
Sorry for not starting new topic even though this one is old, but correct place.

The Clickable Banner mod only works up to SMF 1.1.7 and I'm using SMF 2.0 RC2.

I want to make a top left clickable banner that takes me back to my website's homepage.

As recommended above I've gone Admin > Configuration > Themes and Layout > Theme Settings and removed my "Logo image URL" and in "Site slogan:" added the code above with my Homepage URL and banner image address, works well, except the image was on the right and at top left I had my "Forum Title", so I went to Admin > Configuration > Server Settings and changed my "Forum Title" to blank (assume there is no problem in doing that). That got rid of it and moved my clickable banner up but still on right. How do I move it to top left via the "Site Slogan" text/code box and if not possible can you please redirect me to a thread on how to hard code it?

Many thanks.
Title: Re: want my logo at top left to link back to my homepage
Post by: Madzgo on December 27, 2010, 10:14:57 AM
CSS.

Find (in the first half of the document, line 1370):

#siteslogan, img#smflogo
{
margin: 0;
padding: 0;
float: right;
line-height: 3em;
}


Replace with:

#siteslogan, img#smflogo
{
margin: 0;
padding: 0;
float: left;
line-height: 3em;
}



And if it's not in the right place, use:

#siteslogan, img#smflogo
{
margin: 0;
padding: 0;
        position: absolute;
        top: 25px;
        left: 10%;
line-height: 3em;
}

Change 25px and 10% to smaller or larger numbers to move it further down/further right
Title: Re: want my logo at top left to link back to my homepage
Post by: Cheese Head on December 27, 2010, 07:14:18 PM
madzgo, many thanks!

Found that line in my Themes > default > css > index.css file (I'm using default Curve theme).

Just changed right to left parameter, thanks!