Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create custom header in wordpress

// create custom header for theme in wordpress

function themename_custom_header_setup() {
    $args = array(
        'default-image'      => get_template_directory_uri() . 'img/default-image.jpg',
        'default-text-color' => '000',
        'width'              => 1000,
        'height'             => 250,
        'flex-width'         => true,
        'flex-height'        => true,
    );
    add_theme_support( 'custom-header', $args );
}
add_action( 'after_setup_theme', 'themename_custom_header_setup' );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #create #custom #header #wordpress
ADD COMMENT
Topic
Name
2+4 =