forked from scribu/wp-front-end-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Editing theme images
scribu edited this page Feb 19, 2011
·
6 revisions
You have to modify your theme's code. Replace something like this:
<img src="<?php bloginfo('template_url'); ?>/images/header_1.jpg" width="970" height="140" alt="<?php bloginfo('name'); ?> header image 1" title="<?php bloginfo('name'); ?> header image 1" />
with this:
<?php editable_image('header-1',
get_bloginfo('template_url') . '/images/header_1.jpg',
array('width' => 970, 'height' => 140, 'alt' => get_bloginfo('name')));
?>
The editable_image() template tag is located in fields/other.php
.