News:

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

Main Menu

Forum's logo is obscuring the forum title

Started by QScotland, June 05, 2018, 12:40:14 PM

Previous topic - Next topic

QScotland

I would like to show a site logo in my forum. Following the instructions in the Help topic "How to change the logo", I uploaded my logo and entered its URL in the Logo Image URL box, under "Theme Options and Preferences".

The logo correctly appears as expected, in the top left corner of the page. The problem is that it completely obscures the forum's title.

Is there any way to show both the logo and the title?

I am using SMF 2.0.15 with the Default Curve theme.

Thanks in advance.

Mike

Aleksi "Lex" Kilpinen

If you wish to keep both a logo image, and the alternative text, you would need to edit index.template.php

The default code would be this


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

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

QScotland

Many thanks, Aleksi, I can see exactly what needs to be done.

Mike

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: