Jorge
|
Hi all, I am trying to include a code to display the logo in the control panel.
I managed to include it in the panel, but I can not be displayed in the header.
Can you help me?
control panel code:
Quote : //Cambio del logo $options[] = array( 'name' => __('Logo', 'options_check'), 'desc' => __('Selecciona el logo a mostrar en la web, tamaño máximo 292 x 114px.', 'options_check'), 'id' => 'logo_uploader', 'type' => 'upload');
I have two codes for the header (I do not work)
header code:
<?php //Recogemos la url de la imagen si han subido alguna imagen. $logo_uploader = of_get_option('logo_uploader','Default Data'); //Mostramos el logo en nuestra plantilla if ($logo_uploader){ echo"<img src='<?php echo $logo_uploader ?>' />"; }else{ echo"<a href='#' title=''>the_title();</a> }?>
<h1 id="logo"> //Utilizamos un condicional if, en el que mostramos la imagen si hay imagen, //si no hay mostramos un texto, esto solo es una forma de hacerlo, podemos //utilizar este dato que obtenemos, de la forma que más nos convenga. <a href="<?php echo home_url(); ?>" title="<?php bloginfo('description')?>"> <?php if ($logo_uploader) { ?> <img src="<?php echo $logo_uploader ?>" /> <?php }else{ ?> <a href="" title=""><?php the_title();?></a> <?php }?> </a> </h1> <!-- Final #logo -->
thank you
|