• reblis

    (@reblis)


    I have this block of code, and I wanna change it from php to a graphic
    The H1 tag is puling in the blog name via PHP, but I wanna remove that and just use a png that I have of my logo.

    How would I go about doing that?

    Herre is the code
    <div id=”wrapper”>
    <?php if (function_exists(‘linquist_switch’)) {linquist_switch();}?>
    <div id=”logo”>
    <h1>“><?php bloginfo(‘name’); ?></h1>
    <h2><?php bloginfo(‘description’); ?></h2>
    </div>

    Thanks

Viewing 1 replies (of 1 total)
  • stvwlf

    (@stvwlf)

    One way is to add the image as a background image in the CSS.

    1) add this css to style.css in your theme folder:

    #logo h1 {
      background: url(images/mylogo.jpg) no-repeat;  {use your logo filename}
      height: 100px;   {enter the height of your logo instead of 100}
      width: 500px;    {enter the width of your logo instead of 500}
    }

    2) put the logo image in the images folder that is inside your theme’s folder

    3) in header.php, have the <h1> code look like this (remove everything between the tags) <h1></h1>

Viewing 1 replies (of 1 total)
  • The topic ‘Add a graphic logo to this code’ is closed to new replies.