Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

Imagen en cabecera

Estas en el tema de Imagen en cabecera en el foro de WordPress en Foros del Web. Hola a todos, quisiera poner una imgen en la cabecera de mi blog, en la parte superior, nose que codigo debería de incluir para que ...
  #1 (permalink)  
Antiguo 14/02/2011, 10:45
 
Fecha de Ingreso: septiembre-2007
Mensajes: 104
Antigüedad: 16 años, 7 meses
Puntos: 1
Imagen en cabecera

Hola a todos, quisiera poner una imgen en la cabecera de mi blog, en la parte superior, nose que codigo debería de incluir para que me mostrara la imágen.
Gracias.
  #2 (permalink)  
Antiguo 14/02/2011, 10:59
Avatar de pao01
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 1.875
Antigüedad: 15 años, 10 meses
Puntos: 351
Respuesta: Imagen en cabecera

Abrís el documento cabecera.php y allí incluís:

Código HTML:
Ver original
  1. <a id="banner" href="http://indexdetupagina.com" title="título"><img src="http://lugardondealojalaimagenparaelbanner" alt="banner" /></a>


http://indexdetupaginapuntocom < es un ejemplo (aquí escribís la url a la que te interesa que te lleve en caso de clickear sobre la imagen).

src="http://lugardondealojalaimagenparaelbanner" < es un ejemplo (aquí escribís la url del sitio donde esté alojada tu imagen.


Style (hoja css):

Código CSS:
Ver original
  1. #banner {
  2. position: absolute;
  3. left: 767px;
  4. top: 39px;
  5. }

left y top: Irás variando los valores hasta tanto lo tengas posicionado donde te interesa.
__________________
Entre más estrecha la mente, más grande la boca.- Ted Cook
Autosconarte-Blog
  #3 (permalink)  
Antiguo 16/02/2011, 11:05
 
Fecha de Ingreso: febrero-2011
Mensajes: 2
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: Imagen en cabecera

Yo hize esto, insete este codigo en el index

Código PHP:
Ver original
  1. <a href="http://www.miweb.com/"><img class="alignleft size-full wp-image-740" title="logo" src="http://www.logodemiweb.com/wp-content/uploads/2011/02/logo.jpg" alt="" width="923" height="90" /></a>

Código PHP:
<?php get_header(); ?>
<script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAAKVQvIRsY30FaKOuG1vxGYBQ6FjbnNKC3lQfVCiIgdzWfzQrN3BSrOsMcoETDC8-KAaCD9aUk8g1jUQ"></script>
<a href="http://www.hiturbano.com/"><img class="alignleft size-full wp-image-740" title="logo" src="http://www.hiturbano.com/wp-content/uploads/2011/02/logo.jpg" alt="" width="923" height="90" /></a>
<?php include (ABSPATH '/wp-content/plugins/wp-featured-content-slider/content-slider.php');?><a href="http://www.hiturbano.com/wp-content/uploads/2011/02/bar.gif"><a href="http://www.hiturbano.com/wp-content/uploads/2011/02/bar1.gif"><img class="alignleft size-full wp-image-742" title="bar" src="http://www.hiturbano.com/wp-content/uploads/2011/02/bar1.gif" alt="" width="933" height="14" /></a>
 <script type="text/javascript">
if(top.location!=this.location) top.location=this.location;
</script> 

        <div id="contentleft" class="clearfix">

<?php if (is_home() && ($paged 2)) { ?>
<?php 
include('topcontent.php'); ?>
<?php 
?>

            <?php include(TEMPLATEPATH "/leftcontent.php"); ?>

            <div id="content">

<?php if (have_posts()) : while (have_posts()) : the_post();
if( 
$post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
            <div class="post" id="post-<?php the_ID(); ?>">
                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                <div class="postinfo">
                    By <?php the_author_posts_link(); ?> on <?php the_time('M j, Y'?> in <?php the_category(', '); ?> | <?php comments_popup_link('comments(0)''comments(1)''comments(%)'); ?>
                </div>
                <div class="entry">
                    <?php the_content('Read the full article'); ?>
                    <?php if ( function_exists('the_tags') ) : ?>
                    <div class="tags"><?php the_tags(); ?></div>
                    <?php endif; ?>
                </div>
                <div style="clear:both;"></div>
            </div>

<?php endwhile; endif; ?>

            <div class="navigation">
                <div class="alignleft">
                    <?php posts_nav_link('','','&laquo; Previous Entries'?>
                </div>
                <div class="alignright">
                    <?php posts_nav_link('','Next Entries &raquo;',''?>
                </div>
            </div>

            </div>

        </div>

<?php get_sidebar(); ?>       
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21007434-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<meta name="alexaVerifyID" content="kKJFyakTQXJJy66CI0XTPFTBvlg" />
<?php get_footer(); ?>

Etiquetas: cabeceras
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:19.