Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: QScotland on June 05, 2018, 12:40:14 PM

Title: Forum's logo is obscuring the forum title
Post by: QScotland on June 05, 2018, 12:40:14 PM
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
Title: Re: Forum's logo is obscuring the forum title
Post by: Aleksi "Lex" Kilpinen on June 05, 2018, 12:53:25 PM
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>';

Title: Re: Forum's logo is obscuring the forum title
Post by: QScotland on June 06, 2018, 04:09:29 AM
Many thanks, Aleksi, I can see exactly what needs to be done.

Mike
Title: Re: Forum's logo is obscuring the forum title
Post by: Aleksi "Lex" Kilpinen on June 06, 2018, 04:20:39 AM
You're welcome :)