• Resolved flowerscat

    (@flowerscat)


    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.

    https://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.

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