Integración de logo en theme actual

  • Autor Autor Dibbum
  • Fecha de inicio Fecha de inicio
D

Dibbum

Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Hola buenas tengo un logo y me gustaria integrarlo en Enlace eliminado
estoy acostumbrado a ir al theme buscar en imagenes y sustituir logo.png pero resulta que en el theme que estoy utilizando no hay... ayuda porfavor
 
hola puedes pegar el código del header.php para analizarlo.
 
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php if (is_home () ) { bloginfo('name'); echo " - "; bloginfo('description'); 
} else { wp_title('',true); echo " - "; bloginfo('name'); }?></title>
<meta name="robots" content="index,follow" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>

</head>

<body>
<div id="wrapper">

<div id="header">
<div class="topright">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div> 
</div> <!-- Closes Header -->

<div class="cleared"></div>
<div id="underheader">
<div id="toprss"><a href="feed:<?php bloginfo('rss2_url'); ?>">
<img src="<?php bloginfo('template_directory'); ?>/images/grabrss.gif" alt="grab our rss feed"></img></a>
</div>


<h1 class="sitename"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2 class="sitedesc"><?php bloginfo('description'); ?></h2>

</div><!-- Closes underHeader -->



<div id="nav">
<?php function get_the_pa_ges() {
  global $wpdb;
  if ( ! $these_pages = wp_cache_get('these_pages', 'pages') ) {
     $these_pages = $wpdb->get_results('select ID, post_title from '. $wpdb->posts .' where post_status = "publish" and post_type = "page" order by ID');

   }
  return $these_pages;
 }

 function list_all_pages(){

$all_pages = get_the_pa_ges ();
foreach ($all_pages as $thats_all){
$the_page_id = $thats_all->ID;

if (is_page($the_page_id)) {
  $addclass = ' class="current_page"';
  } else {
  $addclass = '';
  }
$output .= '<li' . $addclass . '><a href="'.get_permalink($thats_all->ID).'" title="'.$thats_all->post_title.'"><span>'.$thats_all->post_title.'</span></a></li>';
}

return $output;
 }
?>
<ul>
<?php

if (is_home()) {
  $addclass = ' class="current_page"';
  } else {
  $addclass = '';
  }
echo "<li" . $addclass . "><a href='" . get_option('home') . "' title='Home'><span>Home</span></a></li>";
echo list_all_pages();?>
</ul>

<div class="cleared"></div>
</div> <!-- Closes Nav -->



<div class="topcurvewhite"></div>
<div id="main">
 
Esta es la parte que hay que modifica
HTML:
<h1 class="sitename"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
tenemos que eliminar el
HTML:
<?php bloginfo('name'); ?>
y justo donde estaba eso comocas el codigo de imagen
Justo asi
HTML:
<h1 class="sitename"><a href="<?php echo get_option('home'); ?>"><img src='URL DE LA IMAGEN' border='0'>></a></h1>
Y LISTO...
SALUDOS
 
Remplaza esto:

PHP:
<h1 class="sitename"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
<h2 class="sitedesc"><?php bloginfo('description'); ?></h2>

por este otro:

PHP:
<h1 class="sitename"><a href="<?php echo home_url( '/' ); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/logo.jpg" /></a></h1>

la imagen es: logo.jpg deve estar en el directorio images de tu theme

Saludos...
 
Solucionado gracias!
 
Uhmm interesante tu blog aver si consegigo algo para mi cel.

Saludos 😛
 

Temas similares

Atrás
Arriba