MyBB Community Forums

Full Version: Get theme to display logo instead of textual Board Name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
mybb 1.8.20 running the Andreas-09 Green theme.

Under ACP / Configuration / Board Name
I have the Board Name.  This is all that is showing in the upper left banner of the theme.  The Board name.

The logo I have set to appear under
Home / Themes / Andreas09-green
Board Logo

Location of the board logo used in this theme (this is the logo that appears at the top of each page).

is not visible anywhere.
^ logo field should be available at theme properties. not sure how you missed it.

in the header template of the theme :

find
<h1><a href="{$mybb->settings['bburl']}/index.php" title="{$mybb->settings['bbname']}">{$mybb->settings['bbname']}</a></h1>

change to
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
Yes! that's it! Thanks. If I had to do this with prior forums, I had forgotten about it.
(2019-06-10, 04:18 PM).m. Wrote: [ -> ]
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>

This is assuming that the image will be found in the default image folder of the original MyBB installation. 'root'\image. Correct?

<div class="float_left logo" style="vertical-align: middle;"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" class="logolink" style="max-width:100%;height:auto;" /></a></div>	

I had to put my logo into a 'DIV' to make it work correctly (alignment-wise) on my website.

I put this code in for others to copy and paste if they have a similar situation as mine.
^ in general, logo image path comes from theme variable {$theme['logo']} [given at theme properties]