Title: Inserting an image in PHP coding
Last modified: August 19, 2016

---

# Inserting an image in PHP coding

 *  Resolved [aleks77](https://wordpress.org/support/users/aleks77/)
 * (@aleks77)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/)
 * Hello,
 * I downloaded the Blue Lucas theme, but it does not offer me the option to easily
   include a logo.
 * I found in the coding the following PHP lines, which define the title of the 
   blog:
 * _
    <div class=”headerleft”>
 * </h1>
    <?php bloginfo(‘description’); ?>
 * </div>
 * On the website, the bloginfo(‘description’) and the bloginfo (‘name’)are vertically
   aligned. I want to place my logo to the left of both the ‘name’ and the ‘description’.
   How can I do this with PHP? What is the code to use, and where do I place it?
   I read some articles already on this, but whatever I tried had returned an error
   so far.
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1280984)
 * A link to your site might help…
 *  Thread Starter [aleks77](https://wordpress.org/support/users/aleks77/)
 * (@aleks77)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1281171)
 * [http://www.moneywise24.com](http://www.moneywise24.com)
 * Thanks.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1281174)
 * You don’t have much room. Only 275px by 80px to house both your blog name/description
   and a logo image. What are the dimensions of your logo image?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1281176)
 * change the style.css – to include the logo as a background image:
    (for instance)
 *     ```
       .headerleft {
       	/*width: 275px;*/
       	float: left;
       	margin: 0px;
       	padding: 0px;
       	overflow: hidden;
       width:195px;
       background: url(images/logo.jpg) left top no-repeat;
       height:80px;
       padding-left:90px; }
       ```
   
 *  Thread Starter [aleks77](https://wordpress.org/support/users/aleks77/)
 * (@aleks77)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1281201)
 * Hi… thanks for the solution on the background, I love the idea.
 * As to the space in the header… I can change the CSS coding a bit and make the
   left part a bit bigger. There is some unused white space on the right
 *  Thread Starter [aleks77](https://wordpress.org/support/users/aleks77/)
 * (@aleks77)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1281202)
 * Works perfectly. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Inserting an image in PHP coding’ is closed to new replies.

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [logo](https://wordpress.org/support/topic-tag/logo/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 6 replies
 * 3 participants
 * Last reply from: [aleks77](https://wordpress.org/support/users/aleks77/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/inserting-an-image-in-php-coding/#post-1281202)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
