WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme:Pilcrow] Use custom header size (2 posts)

  1. flowerscat
    Member
    Posted 1 year ago #

    Hi

    Can anyone help me with the code to modify my header image size in Pilcrow 1.5.1

    I have created a child theme & copied the custom-header.php from the original theme

    I changed the following in my child theme custom-header.php (in bold)

    function pilcrow_custom_header_setup() {
    $args = array(
    'default-image' => '%s/images/headers/books.jpg',
    'default-text-color' => '000',
    'width' => apply_filters( 'pilcrow_header_image_width', 1200 ),
    'height' => apply_filters( 'pilcrow_header_image_height', 257 ),

    and

    $options = pilcrow_get_theme_options();
    if ( in_array( $options['theme_layout'], array( 'content-sidebar', 'sidebar-content' ) ) ) {
    $args['width'] = apply_filters( 'pilcrow_header_image_width', 1200 );
    $args['height'] = apply_filters( 'pilcrow_header_image_height', 200 );

    The website currently looks like this - I want the header image to stretch across the page. The content wrapper is set to 1200 px.

    http://www.sciencecvsolutions.co.uk/

    Inspite of the changes wordpress will not allow me (Appearances/Custom header/header image) to upload an image greater than 770 px (x200).

    Thanks very much for your time.

  2. flowerscat
    Member
    Posted 1 year ago #

    I tried this as well using Edit CSS:

    #pic {
    position: relative;
    top: 0;
    background: url('http://www.sciencecvsolutions.co.uk/wp-content/uploads/2013/08/SciCVsolutions_header2.png');
    width: 1200px;
    height: 250px;
    margin: 0;
    margin-top: 0;
    }

    which sort of seems to work (I wanted the header height at 200 px), but is there a better fix to customizing header height?

Topic Closed

This topic has been closed to new replies.

About this Topic