resize header logo (4 posts)

  1. naveen73
    Posted 4 years ago #

    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>

    <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.


  2. Shivam Bhalla
    Posted 4 years ago #

    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.

  3. naveen73
    Posted 4 years ago #

    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?


  4. Shivam Bhalla
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic