how to widen horizontally&lessen d height for my header image on my frontpage? (6 posts)

  1. ninelives1980
    Posted 2 years ago #

    I've used the following code to place my header image in header.php of my parent theme.

    <img src="<?php echo get_template_directory_uri(); ?>/images/guitar%20jamming.jpg" width:"100%"; alt="<?php bloginfo( 'name' ); ?>" />

    I'm also looking into making it clickable (to lead to homepage when clicked)

    And I notice that beneath the image, there's a thin white line after it that separates it and the next component. How do I get rid of that white line?

    My site is at http://songspursuit.com/

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Are you saying that you modified the parent theme header.php file? You should not be modifying parent theme files - that's the whole point of using a child theme...

  3. ninelives1980
    Posted 2 years ago #

    Hmm, yea - noted on that :)

    How do I get rid of the white line ? :(

  4. WPyogi
    Forum Moderator
    Posted 2 years ago #

    You need to fix some errors in that header.php file (move the changed one to the child theme )


  5. ninelives1980
    Posted 2 years ago #

    I copied header.php from parent to child by dragging the file by route of (via FTP)

    parent theme -> desktop folder (PC) -> child theme

    Correct me if I'm doing this wrong - as I'll always do so (this way) before editing the file in child theme (this I do if the file doesn't already exist in child theme).

    So, I viewed the validator you pointed me to, it lists the errors - but I can't quite figure out which file to look into (though I corrected some errors cos I remember where I placed those codes that triggered those errors stated by the validator. I apologise as I'm very new (and a non-technical person definitely) to WordPress.

    I tried adding attribute of things like width = 1000px to the <img> tag by just typing those codes like that into my child theme's header.php but to no avail. The image stays the same size-wise.

  6. ninelives1980
    Posted 2 years ago #

    tried setting the image width and height to the maximum but it wouldn't occupy the whole top area (used Firebug for this). I'm pretty much lost.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.