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

Commit

Permalink
Merge pull request #171 from mvillagordo/custom-header
Browse files Browse the repository at this point in the history
Add Custom header in Appearance
  • Loading branch information
olefredrik committed Dec 15, 2014
2 parents fc4e79e + 201c0c8 commit 4a1793c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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);

?>

0 comments on commit 4a1793c

Please sign in to comment.