elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  [WP] No me aparecen las fotos del archivo images
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [WP] No me aparecen las fotos del archivo images  (Leído 1,467 veces)
Linton

Desconectado Desconectado

Mensajes: 239



Ver Perfil
[WP] No me aparecen las fotos del archivo images
« en: 3 Marzo 2014, 08:05 am »

He encontrado un curso de WorPress claro y ordenado (algo nada común al parecer). Sin embargo tropiezo con un problema: las imágenes del logo y las redes sociales (son archivos png) no aparecen.
He revisado las rutas, las he cambiado de absolutas a relativas, y nada.

Podría pensarse que he cometido un fallo al copir el código. Pero, tras descargarme los archivos originales del ejemplo, resulta que tampoco se ven. Lo mismo le ocurre a otros usuarios. ¿Alguien puede ayudarme? Gracias, un saludo.

Código del index.php, donde está el div del logo, una de las imágenes que no aparecen:

Código
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title>
  6. <?php if ( is_home() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
  7. <?php if ( is_author() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archivo por autor<?php } ?>
  8. <?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php wp_title(''); ?><?php } ?>
  9. <?php if ( is_page() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php wp_title(''); ?><?php } ?>
  10. <?php if ( is_category() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archivo por Categoria&nbsp;|&nbsp;<?php single_cat_title(); ?><?php } ?>
  11. <?php if ( is_month() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archivo por Mes&nbsp;|&nbsp;<?php the_time('F'); ?><?php } ?>
  12. <?php if ( is_search() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Resultados<?php } ?>
  13. <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archivo por Tag&nbsp;|&nbsp;<?php  single_tag_title("", true); } } ?>
  14. </title>
  15. <?php wp_head(); ?>
  16. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  17. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  18. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  19. </head>
  20. <body>
  21. <div id="content-wrapper">
  22. <div id="header">
  23. <div id="logo">
  24. <img src="http://localhost/wp-content/themes/themetaller/images/logo.png" />
  25. </div><!-- end of logo -->
  26. <ul id="menu-top">
  27. <li><a href="#">Link 1</a></li>
  28. <li><a href="#">Link 2</a></li>
  29. <li><a href="#">Link 3</a></li>
  30. <li><a href="#">Link 4</a></li>
  31. </ul>
  32. <ul id="menu">
  33. <li><a href="#">Inicio</a></li>
  34. <li><a href="#">P&aacute;gina est&aacute;tica</a></li>
  35. <li><a href="#">Categor&iacute;a</a></li>
  36. <li><a href="#">Cont&aacute;ctenos</a></li>
  37. </ul>
  38. </div> <!-- end of logo -->


Código del footer.php con las imágenes de las redes sociales, que tampoco se ven:

Código
  1. <div id="footer">
  2. <ul class="social">
  3. <li><a href="#"><img src="http://localhost/wp-content/themes/themetaller/images/skype.png" /></a></li>
  4. <li><a href="#"><img src="http://localhost/wp-content/themes/themetaller/images/facebook.png" /></a></li>
  5. <li><a href="#"><img src="http://localhost/wp-content/themes/themetaller/images/twitter.png" /></a></li>
  6. <li><a href="#"><img src="http://localhost/wp-content/themes/themetaller/images/rss.png" /></a></li>
  7. </ul>
  8. </div><!-- end of footer -->
  9.  
  10. </div><!-- end of content-wrapper -->
  11. <?php wp_footer(); ?>
  12. </body>
  13. </html>


En línea

Linton

Desconectado Desconectado

Mensajes: 239



Ver Perfil
Re: [WP] No me aparecen las fotos del archivo images
« Respuesta #1 en: 3 Marzo 2014, 17:27 pm »

¡Solucionado, gracias!


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
images « 1 2 »
Diseño Gráfico
mr.roboto 15 5,313 Último mensaje 22 Mayo 2004, 10:18 am
por Azielito
ayuda para grabar varias images iso
Software
xbeast10x 0 2,346 Último mensaje 30 Octubre 2006, 22:06 pm
por xbeast10x
Mostrar resultado de www.images.google.com en PictureBox
.NET (C#, VB.NET, ASP)
enterariel 9 5,016 Último mensaje 5 Agosto 2012, 02:36 am
por Keyen Night
Aparecen varias fotos del iPhone Mini mostrando que está acabado en plástico
Noticias
wolfbcn 0 1,424 Último mensaje 21 Julio 2013, 23:15 pm
por wolfbcn
Paradojas en Windows [Images]
Foro Libre
sclub 0 1,469 Último mensaje 28 Diciembre 2016, 00:29 am
por sclub
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines