Support » Themes and Templates » [Theme: Patchwork] Fix for custom side header image

  • I would like to suggest a small patch to the Patchwork theme. In the function.php at the end of the patchwork_setup() function you need to setup the custom header image.

    $defaults = array(
    ‘default-image’ => ”,
    ‘random-default’ => false,
    ‘width’ => 650,
    ‘height’ => 150,
    ‘flex-height’ => true,
    ‘flex-width’ => true,
    ‘default-text-color’ => ”,
    ‘header-text’ => true,
    ‘uploads’ => true,
    );
    add_theme_support( ‘custom-header’, $defaults );

    This enable the site owner to upload any size image instead of being limited to 650*150

    Thanks

    Pierre

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, Pierre,
    I think the sounds like a great idea. I’d like to implement this my self into the patchwork function.php. I’m trying to customize some of it. I’m not sure where you are suggesting to place this code into the file. Could you please explain where to place it.
    Thanks for your help and a great idea!
    Karlene

    In the function.php look for function patchwork_setup() and add the code at the end.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Patchwork] Fix for custom side header image’ is closed to new replies.