Recent Topics

I want to add a logo

Started by on Nov 24, 2005 – Contents updated: Nov 24, 2005

Nov 24, 2005 01:04    

I'm know this is a simple question, but I just can't find the answer in the forums or in the user manual. I want to add my own logo (a gif file) at the top of my blog. I have basic html knowledge, but I'm a novice with php and style sheets.

Nov 24, 2005 05:50

You'll need to edit the skin. You can find it in /skins/whatever-skin-you're-using/_main.php

A great deal of that file just looks like html. You can put your logo in that way and then adjust as needed.

Nov 25, 2005 17:41

Thanks for your reply. I'm still unsure what to do. More questions. Do I edit the file on the server and upload the image in the skin folder (I use the custom skin) or do I do this in the administration area of b2? And the larger question is: where do I add the code. Again, it's probably quite simple, and I'm missing something obvious, but I've gone through the code over and over, and I just can't figure it out. Thanks for any help you can give me.

Kurt

Nov 25, 2005 17:58

Where you add the code depends on where you want the image to show up. If you want it in the blue header at the top of the page, then find this code in /skins/custom/_main.php:

Code

<div class="pageHeader">
 
<h1 id="pageTitle"><?php $Blog->disp( 'name', 'htmlbody' ) ?></h1>
 
<div class="pageSubTitle"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>
 
</div>

Insert the code for your image like this:

Code

<div class="pageHeader">
<img src="img/mylogo.jpg" alt="My logo" style="float:left" />
 
<h1 id="pageTitle"><?php $Blog->disp( 'name', 'htmlbody' ) ?></h1>
 
<div class="pageSubTitle"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>
 
</div>

Upload your image to the /skins/custom/img folder.

Nov 27, 2005 22:06

Thanks for your help. I added my logo, and I ended up learning more about changing skins on b2. :D

Mar 04, 2009 21:02

Thank you for this post.
It helped me too. :)

Apr 07, 2009 20:30

Hi, I'm newbie and i don't know how to add logo, im very thankful that i found the answer here. I've been looking for a long time, seeking each forum to find a topic for adding a logo. Thanks a lot guys keep up the good work, and for having a nice forum.

Aug 03, 2010 12:23

its seems that this can not implied to every skin, I use addyourcontent2, I have tried as what you said, that failed.

Aug 04, 2010 17:32

Thanks a lot for info.

Nov 07, 2010 00:23

How about removing the "powered by b2evolution" logo in the side bar in 3.x?

Apr 15, 2011 18:33

These are really great sharing! It’s really helps me lot. Thank you for the post :D


Form is loading...

multiblog – This forum is powered by b2evolution CMS, a complete engine for your website.