Ready to get started?Download WordPress


[resolved] Resize Header Image (3 posts)

  1. penrefe
    Posted 2 years ago #

    Hello there!

    I am trying to resize the header image to 300px high instead of the standard 160px, and I'm struggling to find the setting to change it.

    I have changed the following:


    if ( empty ( $options['header_image_height'] ) || !is_numeric ( $options['header_image_height'] ) ) {
    					$header_image_height = '160';


    echo '<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1">'."\r";

    (I literally just did a find and replace for 160 within the theme folder!)

    What have I missed? Please help, thanks!


  2. fishtron
    Posted 2 years ago #

    The setting can be changed in the admin panel, under Appearance > Theme Options.

    By the way, what you've changed is the default ($header_image_height is set to 160 if it's not set in options, or if the value was somehow not numeric). It's likely a harmless change (and it won't do anything since the option is already set to 160), but it's not nice to change hardcoded defaults since Per probably picked it for a reason! :)

  3. penrefe
    Posted 2 years ago #

    Oh wow, can't believe I missed that.

    I knew it would be something ridiculously simple.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic