Support » Themes and Templates » resize header logo

  • Hi,
    I am trying to resize the logo in my header. this is what I did
    (1) change this
    <h1 id="site-title"><span><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>

    into
    <h1 id="site-title"><img src="http://localhost/dva/wp-content/uploads/2012/06/cropped-3.jpg"; ?></h1>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Your first code block has now been mangled by the forum’s parser.]

    now I want to resize the logo to fit my page but when making changes in media, it does not seem to work.

    please help.

    Thanks,
    Naveen

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just curious why you would want to wrap an img in an h1 tag?

    Just delete the h1 tag, keep the image. and style it accordingly to your page.

    Thread Starter naveen73

    (@naveen73)

    Hi Shivam,
    Thanks for your response. The code you are referring to come from a template. Do not know why they chose for this method. Could you give me some giudance to how you would code it as per your advice?

    Thanks,
    nav

    I cant excatly tell you how to properly format it unless I see the code and what you are trying to do, but you can give this a try.

    <img src="http://localhost/dva/wp-content/uploads/2012/06/cropped-3.jpg"; width="INSERT_WIDTH_HERE" height="INSERT_HEIGHT_HERE"?>

    This might remove previous styling set by the h1 tag so you probably will have to style the positioning as well.

    Any questions feel free to ask.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘resize header logo’ is closed to new replies.