WordPress.org

Ready to get started?Download WordPress

Forums

Default header image not listed (1 post)

  1. dyordan1
    Member
    Posted 2 years ago #

    Hi All!

    I was experimenting with WordPress today and creating a new theme and all went well until I noticed a small issue - even though my default header image does appear when I use the code below, when you go to Appearance -> Themes -> Customize, the image is not listed under Default. I've also noticed that it's not available under Appearance -> Header. Is that the default behaviour and what would I have to do to have it listed in both places? Thank you!

    $header_properties = array('default-image' => get_stylesheet_directory_uri().'/images/head.jpg');
    
    add_theme_support( 'custom-header', $header_properties);

Topic Closed

This topic has been closed to new replies.

About this Topic