Skip to main content
Logo Started by Aaron101 · · Read 2938 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Logo

Is there a way to make the logo a link to home page when you have the logo option set to center? It would be nice if it was “clickable” :grin:

Re: Logo

Reply #1

In the default theme, only the site name is linked.   To link the logo you will have to edit your index.template.php file and change

Code: (fins) [Select]
	echo '
<span id="logobox">
<img id="logo" src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" title="', $context['forum_name_html_safe'], '" />', empty($settings['site_slogan']) ? '' : '
<span id="siteslogan">' . $settings['site_slogan'] . '</span>', '
</span>
</h1>';

Code: (replace) [Select]
	echo '
<span id="logobox">
<a href="', $scripturl, '">
<img id="logo" src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" title="', $context['forum_name_html_safe'], '" />', empty($settings['site_slogan']) ? '' : '
<span id="siteslogan">' . $settings['site_slogan'] . '</span>', '
</a>
</span>
</h1>';

That is untested, so I don't know if it will cause any layout issues

Re: Logo

Reply #2

For now I used the menu add on and added a Home button ... I will test this out later today. :)

Thank you!

Re: Logo

Reply #3

I made the edit and it works great so far it seems. Thanks again! :)