Customizing SMF > Theme Site Themes

Smooth

<< < (2/3) > >>

Exodus111:
Hey I need to place a Logo in the header of this templatge, how do I do that?

Doesnt seem to be any Logo option in the settings like most templates, anyway I can code this in?

-Exo

Runic:
yes that feature is not part of the theme, the best idea would be to remove the news section and place the img there.

in index.template.php find


--- Code: ---<div class="news normaltext">';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<h2>', $txt['news'], ': </h2>
<p>', $context['random_news_line'], '</p>';

echo '
</div>
--- End code ---

and replace it with


--- Code: ---<div class="news normaltext"><img src="' . $settings['images_url'] . '/YOURLOGO.png" alt="Logo" /></div>
--- End code ---

Replace YOURLOGO with your logo name and prefix assuming its in your theme im ages folder also change Logo to what ever you want.

Exodus111:
Cool thanks ill try that. Id loose the News box?
Any chance I can keep it in some way?

-Exo

Runic:
Play around with that section ... Try putting img code after the </div> and before the ';

Exodus111:
Thanks a lot for the code, that helped, I played around with it for a few hours and got many amusing results.
But im sorry to say I could only get it underneath or above (pushing the news over to the personal greeting section)

I would ofcourse prefer placeing the Logo iun the center, since there is a lot of space there (on most screens), but im not adverse to placing it where the news is now, it could certainly work.

But, I need a news section, its essential for the work im trying to do.

So, any chance I could place the news section somewhere else? Like in the banner area usually reserved for advertizement?

That would make the news more noticable as well.

-Exo


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version