MyBB Community Forums

Full Version: Logo linking
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I was wondering if there is away I can change the location people go to when they click the logo. At the moment it links back to forum home, but im wanting it to link back to my main website.



Thanks
You can edit your mean "Header" template for your skin. If you look, you'll find <img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />, and around that is the url it's linking to. You can change that url to your main website.
Edit : not seen above response Smile

header template consists of code similar to below
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

change to something like below :
<div class="logo"><a href="YOUR site URL"><img src="{$theme['logo']}" alt="" title="visit Home page" /></a></div>
<table width="100%" border="0" class="top">
  <tr>
    <td height="74">

<a href="{$mybb->settings['bburl']}/index.php"><img src="images/minecraft/logo.png" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>

</td>
  </tr>
</table>

<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div class="logo">
<!-- <a href="{$mybb->settings['bburl']}/index.php"><img src="images/minecraft/logo.png" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a> -->
</div>
	

Hmm what line do I change?
change below :
<a href="{$mybb->settings['bburl']}/index.php"><img src="images/minecraft/logo.png" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
So the first one? or both of them?
oh! it's the first one ; change to something similar to below code ; { change MAIN SITE URL , SITE NAME .. }
<a href="MAIN SITE URL"><img src="images/minecraft/logo.png" alt="SITE NAME" title="SITE NAME" /></a> 
Ok I changed it to that, but now I dont have my logo showing up
bump?
^ checked your forum, there appears to be some mistake in modifying the code ...



Pages: 1 2