Support » Themes and Templates » How to add a logo to the site template?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Very simple (like all the things you know… :P)

    1. upload your logo to the server

    2. edit your template file ‘header.php’
    (/wp-content/themes/fspring_widgets/header.php)

    3. find the line where it says:
    (<h1>The Golden Hat</h1>)

    4. change the line to:
    (<h1><img src=”path_to_image/image_name.jpg” border=0 alt=”The Golden Hat” /></h1>)

    5. change the following:
    – path_to_image = hmm… the path to your logo
    – image.jpg = erm… the name of your logo

    Good luck!

    Nice, elegant solution, xanuex. My logo is a flash object, not an image. How would that change your solution?

    Thanks.

    I should have mentioned what I’ve already tried:

    Instead of “Golden Hat” I inserted:

    <h1><object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0″ width=”509″ height=”182″>
    <param name=”movie” value=”osha1.swf”>
    <param name=quality value=high>
    <embed src=”osha1.swf” quality=high pluginspage=”http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash” type=”application/x-shockwave-flash” width=”509″ height=”182″>
    </embed> </object></h1>

    Then I placed “osha1.swf” into the folder: public_html/wp-content/themes/fspring-10/fspring-10.

    The result is a new white box, the size of my flash logo, but no flash logo.

    You can see the logo — working — at http://www.oshadavidson.com

    Any suggestions?

    Dude….. you guys rock! Thanks!

    Hi Guys,

    Just curious…do I need to convert my logo which I created by myself in word document to jpg? Please advise….

    Thank you

    I have none of this in my header…..I want to place logo on my site, and really need help with this

    here is theme I use simple X and my logo is on the favicon and also listed on AD space sidebar page, just to give you Idea , what I want to do..

    I want to add logo on left corner on my header before title . I try it , and couldn’t find proper code for it….

    Any help appreciated

    Ok….I figure myself here is the ANSWER for everyone who looking to place custom logo into the header next to your title

    YOUR HEADER NOW (FIND THIS CODE IN YOUR HEADER PAGE)

    <h1>/”><?php bloginfo(‘name’); ?></h1>

    REPLACE WITH THIS (UPLOAD YOUR LOGO INTO YOUR THEME IMAGES DIRECTORY

    <h1>/”><img src=”<?php echo get_option(‘home’); ?>/wordpress/wp-content/themes/THEMENAME/THEME/images/YOURIMAGENAME.jpg” title=”YOURTITLEORANYTEXT.” alt=”IMAGE TEXT.” height=”50″ width=”50″ />SITE NAME TITLE</h1>

    I hope this help…Good luck

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add a logo to the site template?’ is closed to new replies.