Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Add Custom header in Appearance #171

Merged
merged 6 commits into from
Dec 15, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@
// Add theme support
require_once('library/theme-support.php');

// Add Header image
require_once('library/custom-header.php');

?>
22 changes: 22 additions & 0 deletions library/custom-header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

// The Header-image
$defaults = array(

'default-image' => '',
'width' => 0,
'height' => 0,
'flex-width' => false,
'flex-height' => false,
'uploads' => true,
'random-default' => false,
'header-text' => false,
'default-text-color' => '',
'wp-head' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);

add_theme_support('custom-header', $defaults);

?>