News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Change Hyperlink on Logo

Started by grizzz, May 17, 2012, 12:09:22 PM

Previous topic - Next topic

grizzz

First I just want to say, you guys are awesome.  This is the first support site I have been on that I have not been made to feel the neophyte I am.  Thanks guys

Now the issue...  running version 2.0.2

My logo in the upper right corner is hperlinked back to the forum's indesx.php page.  I want to change this hyperlink to go back to the website's home page.  Please keep in mind, that I am so new to this that I know enough to be 100% dangerous and if there is a chance to blow it up, I probably will  :'(

Thanks a ton all

Oldiesmann

Michael Eshom
Christian Metal Fans

grizzz

Quote from: Oldiesmann on May 17, 2012, 12:55:47 PM
What theme are you using?

I am using the SMF Default Theme (curve??)

grizzz

#3
bump.

grizzz


ApplianceJunk

Try this, make sure you have a backup or can reverse the changes you try first. :)

In Themes/default/index.template.php

Find:


<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';


Change it like this.


<h1 class="forumtitle">
<a href="http://MyWebsite.com">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';



grizzz

AJ THAT WORKED!!!! :D :D :D 

Thanks a million dude



Advertisement: