News:

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

Main Menu

Banner

Started by Ronald_1938, May 14, 2011, 04:13:11 PM

Previous topic - Next topic

Ronald_1938

I would like to install a html code banner (two piece maybe three piece) in the section shown in my attachment. I do not want to use the Change Logo in the current theme, but rather use the CSS File or the index. template.php file..

I have search high and low for instructions, and can not locate any.

If anyone follows me, can you explain how this is done.

Thanks Ron..

Sir Osis of Liver


You can do it here - Admin -> Configuration -> Current Theme -> Theme Settings -> Logo image URL

Or edit index.template.php - look for function template_body_above()

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

                                     - R. Waters

InfoStrides

#2
Krash guide will give you what you need.

Ronald_1938

Thanks my friends.. It did work, only problem is how do I remove the SMF Logo, from the right upper corner.

I did remove some  code, but ended up with an error, so had to put it back in..

Just which code is it that I remove..

Thnaks Ron..

Sir Osis of Liver

#4

Should be the next line in index.template.php.  Hold on, I'll take a look.

Ok, two ways to do it:

Go to Admin -> Configuration -> Current Theme -> Theme Settings -> Site Slogan and put a couple of spaces in the blank field.  (Careful, the input field doesn't line up properly with 'Site Slogan' - it's a bug).

Or, find this -



// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>



Change it to this -



// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>






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

                                     - R. Waters

Ronald_1938

Thanks that worked..

Ron..

Advertisement: