WordPress.org

Forums

[Theme: Patchwork] Fix for custom side header image (3 posts)

  1. bordeaux
    Member
    Posted 2 years ago #

    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

  2. Karlene814
    Member
    Posted 2 years ago #

    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

  3. bordeaux
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags