News:

Wondering if this will always be free?  See why free is better.

Main Menu

Clickable header banner

Started by imconfused, July 09, 2011, 12:30:53 AM

Previous topic - Next topic

imconfused

I put a banner and it"s clickable on the top of my forum. But the link goes to the forum and I want it to go to another site.  The Mother site so to speak.
How do i change the link to the site that i want???  I see the code on the theme index on line 178 but don't know how to change it.
The theme is Clear Sky based on the curve theme.
Thanx

Sir Osis of Liver


Attach your index.template.php.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

imconfused

Attach where?  I can post the lines for you.

Kermit

Try this one

<a href="another site address"><img src="your banner url" alt=""/></a>
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

imconfused

Here is the php code.
<div id="top_section">
         <h1 class="forumtitle">
            <a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="'. $settings['images_url']. '/theme/mylogo.png" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" />' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" />', '</a>
         </h1>';
I tried puting the url after the a tag but it didn't work. Got a error about a ' and / in the php.  Should I completely take out everthing up to the code for the forum name?
Thanx

Kermit

Just try to change

<a href="', $scripturl, '">

remove ', $scripturl, ' and put your own url
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

imconfused

Thank you.  I think I took out the quote after the a tag and that caused the error.  Love this new version.
Works and I shall remember Hahahaha.

Advertisement: