Cómo agregar un logo en lugar de texto en mi tema

  • Autor Autor gful
  • Fecha de inicio Fecha de inicio
gful

gful

Eta
Redactor
Verificación en dos pasos activada
Bueno estoy rediseñando un teme basico, para darle un toque mas personal, pero solo me falta el logo, el sitio solo me muestra un texto, aunque me da la opción de poner el logo este no carga, si alguien puede ayudarme acá esta el código del "Header.php" donde creo que se debe llamar al logo.

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes('xhtml'); ?>>
<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<?php if( get_post_meta($post->ID, "_seo_title", true) ): ?><title><?php echo get_custom_field('_seo_title'); ?></title><?php else: ?><title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' : '; } ?></title><?php endif; ?>
<?php if( get_post_meta($post->ID, "_seo_description", true) ): ?>
<meta name="description" content="<?php echo get_custom_field('_seo_description'); ?>" /><?php else: ?><?php endif; ?>	
<?php if( get_post_meta($post->ID, "_seo_keywords", true) ): ?><meta name="keywords" content="<?php echo get_custom_field('_seo_keywords'); ?>" /><?php else: ?><?php endif; ?>
	
<link rel="Shortcut Icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />
<?php if(get_theme_mod('style')) : ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/<?php echo get_theme_mod('style'); ?>" type="text/css" media="screen" />
<?php else : ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php endif; ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

</head>

<body><div><a id="top"></a></div>

<div id="wrap">

<div id="headerbg">
    <div id="header">
    <?php if(get_theme_mod('header_blog_title') == 'Image') { ?>
        <div class="headerleft">
            <?php if (is_home()) { ?>
            <h1><a href="<?php echo get_settings('home'); ?>/"><img src="http://sitioencuestion/wp-content/themes/temapersonal/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a></h1>
            <?php } else { ?>
            <h4><a href="<?php echo get_settings('home'); ?>/"><img src="http://sitioencuestion/wp-content/themes/temapersonal/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a></h4>
            <?php } ?> 
        </div>	
    <?php } else { ?>
        <div class="headerleft">
            <div class="headertext">       
                <?php if (is_home()) { ?>
                <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
                <?php } else { ?>
                <h4><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h4>
                <?php } ?> 
                <p><?php bloginfo('description'); ?></p>  
            </div>
        </div>
    <?php } ?>
        <div class="headerright">
            
        </div>
    </div>
</div>


Tengo que editar algo o el logo lo llamo desde otro archivo?

No se nada de códigos haber si me ayudan, Gracias.

Saludoos.! 😀
 
Segun veo tienes que ir a las opciones del template y poner que sea una imagen el logo y luego cambiar esto:
Insertar CODE, HTML o PHP:
http://sitioencuestion/wp-content/themes/temapersonal/images/logo.png
por la url de tu logo.
 
En el código reemplaza el texto por la imagen.
 
Seria de un poco mas de ayuda si me pusieran ya el código editado, porque la verdad no tengo ni idea.

Intente de todo pero no da.
 
Ya te mande la solución por MSN jajaja, suerte!
 
Atrás
Arriba