Support » Themes and Templates » [Theme:Pilcrow] Use custom header size

  • Resolved flowerscat



    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 ),


    $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.

    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.

Viewing 1 replies (of 1 total)
  • I tried this as well using Edit CSS:

    #pic {
    position: relative;
    top: 0;
    background: url(‘’);
    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?

Viewing 1 replies (of 1 total)
  • The topic ‘[Theme:Pilcrow] Use custom header size’ is closed to new replies.