I want users to be able to upload custom headers in wordpress? How? |
|
Tiff
|
Using 4.2, I'd like them to be able to upload their own header / logo into wordpress. That'd be amazing. What do I have to do? I don't mind manual code.
|
|
Tiff
|
Found solution
In header.php find
<header class="art-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>"><?php get_sidebar('header'); ?></header>
replace with
<img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
add this to the very TOP of functions.php after the opening <?
/* Custom Header */
$args = array(
'width' => 1000,
'height' => 200,
'default-image' => get_template_directory_uri() . '/images/header.jpg',
'uploads' => true,
);
add_theme_support( 'custom-header', $args );
|
|
Francine
|
Hello! Will I be able to do it with a template I got from http://www.templatemonster.com/wordpress-themes.php website? I want to use a template but to allow users to edit the header
|
|
Tiff
|
No, I'd have to see the code. The header.php will be different.
|
|
|
|