Add Logo Upload to Theme options Page


Author Message
Marc

Posted: 9/14/2011
Quote message 

Hi,

I integrateted a simple Logo-Upload-function to my theme (see above). Now I have a new Menu "Header" in the admin menu.

How can I integrate this function to the theme-option page aof artisteer?

this is the code In function.php

<?php
//Cutsom Header image
define( 'HEADER_IMAGE', '%s/images/logo.png' ); // The default logo located in themes folder
define( 'HEADER_IMAGE_WIDTH', apply_filters( '', 200 ) ); // Width of Logo
define( 'HEADER_IMAGE_HEIGHT', apply_filters( '', 100 ) ); // Height of Logo
define( 'NO_HEADER_TEXT', true );
add_custom_image_header( '', 'admin_header_style' ); // This Enables the Appearance > Header
// Following Code is for Styling the Admin Side
if ( ! function_exists( 'admin_header_style' ) ) :
function admin_header_style() {
?>
<style type="text/css">
#heading {
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
}
#heading h1, #heading #desc {
display: none;
}
</style>
<?php
}
endif;
//END Cutsom Header image



this is the code in header.php

<div class="di-header-logo">
<div class="di-headerobject" onclick="location.href='<?php echo get_option('home'); ?>';" style="cursor: pointer;">

<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="Header Image" />

</div>
<div class="di-logo">
<?php if(theme_get_option('theme_header_show_headline')): ?>
<h1 class="di-logo-name"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php endif; ?>
<?php if(theme_get_option('theme_header_show_slogan')): ?>
<h2 class="di-logo-text"><?php bloginfo('description'); ?></h2>
<?php endif; ?>
</div>
</div>

 
Harmony

Posted: 2/26/2012
Quote message 

Hi Marc, I had success with a very similar approach in themes created in older versions of artisteer but when I try to implement this in a theme created with Artisteer v 3.1.0 I get a white screen - any ideas?

Harmony