MyBB Community Forums

Full Version: Changing the Logo URL.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I change the URL the logo points to.  I need it to point to the main website, not the forum site.

Thanks in advance.
In your case, I would recommend to edit the Template "header":
Replace the logo-variable {$theme['logo']} by the absolute path of the file of your main site.

You also can use a relative path instead like this: "../../mysite/logo.png" - depending on the location of your forum and the root page.

I guess, you are going to use your dedicated logo for both the main page and the forum. So, better use an absolute path to the dedicated logo file.

[ETS]
(2024-04-26, 10:28 PM)[ExiTuS] Wrote: [ -> ]In your case, I would recommend to edit the Template "header":
Replace the logo-variable {$theme['logo']} by the absolute path of the file of your main site.

You also can use a relative path instead like this: "../../mysite/logo.png" - depending on the location of your forum and the root page.

I guess, you are going to use your dedicated logo for both the main page and the forum. So, better use an absolute path to the dedicated logo file.

[ETS]

Thanks for the feedback.  I'm very new to mybb,

are you speaking of:

./install/resources/mybb_theme.xml

<a href="www.domain.com"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>

It appears it's pointing where I want, but the url for the logo is pointing to: http://domain.com/forum/mybb/Upload/index.php

Thanks the only reference I can find to logo.png.
you can edit the template header in ACP --> Templates --> Choose your Style-Templatepack --> Category Header --> Header

search for this line or similar if you use not the MyBB-Default-Style
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
You see the a-tag points to index.php
Change to what you want it to link