WordPress.org

Ready to get started?Download WordPress

Forums

changing header height in Modularity-lite (3 posts)

  1. hps2322
    Member
    Posted 1 year ago #

    Please Help,
    I followed the instructions in a previouse forum post on changing the header height for modularity-lite. Created a new functions php folder in my child theme then entered this code in the editor
    <?php
    define('HEADER_IMAGE_WIDTH', 950);
    define('HEADER_IMAGE_HEIGHT', 400);
    function my_header_height($size){
    return 110;
    }
    function my_header_width($size){
    return 350;
    }
    ?>
    Saved the changes. Went in to change header and my new pixel height showed up under picture size. Uploaded picture, asked me to crop with my new specs. The image sample is the corrected new height Then saved
    Went to site and the height did not change but the picture stretched out.
    Default pixel height was 950 wide / 200 tall

    If anyone knows where I went wrong or what else I need to do I'd like to know
    Thanks

    [ http://codex.wordpress.org/Forum_Welcome#No_Bumping ]

  2. hps2322
    Member
    Posted 1 year ago #

    I found this in the css style sheet. Do I need to change this?
    }

    #header-image {
    margin-bottom: 20px;
    }

  3. hps2322
    Member
    Posted 1 year ago #

    Actually I just found a "header" folder on the parent site. In that it has reference to the original pixel size.
    Do I need to create a new "header folder and change those specs?

    This is the reference

    <?php if ( get_theme_mod( 'header_image' ) ) : ?>
    <div id="header-image">
    <img src="<?php header_image() ?>" width="950" height="200" alt="" />
    </div>
    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.