WordPress.org

Ready to get started?Download WordPress

Forums

Need to resize custom header size in Sundance theme (6 posts)

  1. lkolazas
    Member
    Posted 1 year ago #

    I am using the Sundance theme to create a site and am hoping to edit the coding to create a smaller custom header. The size is currently 984x242. If I create a jpg smaller than this size it is stretched to fill the 984x242 space. If I make the log smaller within a 984x242 document in indesign the header area impedes upon other areas of the site. I am new to wordpress and need specific directions on how to edit the code. I saw similar posts and tried to edit but it did not work.

    http://www.laurenkolazas.com/Extolorg/

  2. Aaron
    Member
    Posted 1 year ago #

    I didn't install the theme to look for theme options which you might be able to change it but you can do it manually.

    Edit header.php

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="clear header-image-link"><img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    Replace
    <?php echo HEADER_IMAGE_WIDTH; ?>

    and
    <?php echo HEADER_IMAGE_HEIGHT; ?>

    with the right numbers.

  3. lkolazas
    Member
    Posted 1 year ago #

    Thank you for responding! This is driving me crazy....

    So, I go to Appearance, then Editor, Then I click on Header.php from the menu on the right hand side. Then, do I edit existing code or add this to the bottom or search for this section and edit the places you suggested?

  4. Aaron
    Member
    Posted 1 year ago #

    Edit existing code.

  5. lkolazas
    Member
    Posted 1 year ago #

    <?php $header_image = get_header_image();
    if ( ! empty( $header_image ) ) { ?>
    " title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="clear header-image-link">
    <img src="<?php header_image(); ?>" width="<?php echo 300; ?>" height="<?php echo 150; ?>" alt="" />

    <?php } // if ( ! empty( $header_image ) ) ?>

    Attempted to make the width 300 and the height 150. It still looks weird and I am getting extra text or graphics on the right hand side. Also, the menu is really close to the bottom of the logo. Ideas?

  6. Aaron
    Member
    Posted 1 year ago #

    You would change

    width="<?php echo HEADER_IMAGE_WIDTH; ?>"

    to

    width="300"

    then the same with height.

Topic Closed

This topic has been closed to new replies.

About this Topic