• Resolved aleks77

    (@aleks77)


    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(‘name’); ?></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

    (@esmi)

    A link to your site might help…

    Thread Starter aleks77

    (@aleks77)

    esmi

    (@esmi)

    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

    (@alchymyth)

    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

    (@aleks77)

    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

    (@aleks77)

    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.