First, I want to say how much I love using SMF! :D
I need some help with changing the link on my Header Logo. I'm using the Helios Multicolor theme. I want to make the Header Logo I added to direct users to my web site homepage when they click on it. Right now, when you click on the Header Logo it just takes you back to the forums index.php Everytime I try changing the URL on the Header Logo to direct to my web sites homepage it merges the default index.php URL with my web site's URL. This results in a Oops! Url not found or whatever, when you click on it. Then I have to change it back to the way I had it.
There must be a simple way that I can change this so the Logo won't keep linking to the index.php
Someone please help me I'm desperate! :(
I don't know this theme specifically, but you will probably need to edit the theme template directly. The logo is stored in index.template.php.
Based on SMF 1.1 RC2's default template....
Look for "header_logo_url" in the code. That will be around where the header logo is, and the link. Look for the link there and change to what you need.
If you have trouble, I'll look at the template a bit more and see if I can give a code snippet.
It's different. When I go into themes index.template.php it doesn't show my Log's URL. I uploaded it using: Theme Settings - themes Options and preferences
I'm pretty sure this is where my header Logo is located in the index.template.php
Beginning on line 79
echo '
</td></tr></table>';
echo '</div></td><td style="padding-right: 10px;" width="50%" align="right" >';
if(isset($settings['userlogo']) && !empty($settings['userlogo']))
echo '<a href="index.php"><img src="'.$settings['userlogo'].'" border="0" alt="logo" /></a>';
echo ' </td></tr></table>'.$botbox.'</div>';
Anyway when I change it to:
Beginning on line 79
echo '
</td></tr></table>';
echo '</div></td><td style="padding-right: 10px;" width="50%" align="right" >';
if(isset($settings['userlogo']) && !empty($settings['userlogo']))
echo '<a href="my web site's URL"><img src="'.$settings['userlogo'].'" border="0" alt="logo" /></a>';
echo ' </td></tr></table>'.$botbox.'</div>';
It not only links my Header Logo to index.php but my Web site's homepage as well. In other words it puts both URL's into one link that in return becomes dead. ???
I want my Header Logo simply to link to my Web site's homepage.