Hola a todos.
Este es mi primer post en este foro y tengo que decir que lo mío es el SEO.
De programación no tengo ni idea, pero tengo una plantilla paga para una tienda virtual en Wordpresss que me arroja un error cada vez que abro una entrada (post) y se añade una miniatura (Thumbnail) en el homepage.
Es la plantilla Ecommerce Theme Pink que podeis ver [a href="http://demos.ecommercethemes.com/">AQUÍ.[/a]
En este momento lo tengo instalado en forma local (127.0.0.1) y me arroja seis errores de sendas thumbnails.
Llevo peleando con este error desde hace bastantes semanas.
Creo que [a href="http://codex.wordpress.org/Function_Reference/add_theme_support">AQUÍ[/a]
Agradecería una explicación explícita por favor, no soy programadora.
Muchas gracias por la ayuda.
Un saludo.
ERROR w3c.
# Error Line 158, Column 115: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…tle="Entrada 5"><h3 id="post-title-51">Entrada 5</h3><img src="" alt="Entrada …
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
[/QUOTE]
ARCHIVO INDEX.PHP
[QUOTE]
<?php get_header(); ?>
<!--include sidebar-->
<?php include(TEMPLATEPATH."/l_sidebar.php");?>
<div id="content">
<!--index.php-->
<?php if (have_posts()) : while (have_posts()) : the_post(); // the loop ?>
<div id="post-<?php the_ID(); ?>" class="thumbnail">
<a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><h3 id="post-title-<?php the_ID(); ?>"><?php the_title(); ?></h3><img src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" alt="<?php the_title(); ?> <?php _e(''); ?>" /></a>
<p><?php the_category(', ') ?></p>
</div>
<?php endwhile; // end of one post ?>
<!-- Previous/Next page navigation -->
<div class="page-nav">
<div class="nav-previous"><?php previous_posts_link('« Previous Page') ?></div>
<div class="nav-next"><?php next_posts_link('Next Page »') ?></div>
</div>
<?php else : // do not delete ?>
<h3>Page Not Found</h3>
<p>We're sorry, but the page you are looking for isn't here.</p>
<p>Try searching for the page you are looking for or using the navigation in the header or sidebar</p>
<?php endif; // do not delete ?>
<!--index.php end-->
</div>
<!--include footer-->
<?php get_footer(); ?>
[/QUOTE]
ARCHIVO FUNCTIONS.PHP
[QUOTE]
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'Top Tag'));
register_sidebar(array('name'=>'Feature Left'));
register_sidebar(array('name'=>'Feature Right'));
register_sidebar(array('name'=>'Bottom Left Sidebar','before_widget' => '','after_widget' => '','before_title' => '<h2>','after_title' => '</h2>',));
register_sidebar(array('name'=>'Bottom Middle Sidebar','before_widget' => '','after_widget' => '','before_title' => '<h2>','after_title' => '</h2>',));
register_sidebar(array('name'=>'Bottom Right Sidebar','before_widget' => '','after_widget' => '','before_title' => '<h2>','after_title' => '</h2>',));
register_sidebar(array('name'=>'Left Sidebar','before_widget' => '','after_widget' => '','before_title' => '<h2>','after_title' => '</h2>',));
?>
<?php
//Custom Header Image Code -- from the WordPress.com API
define('HEADER_TEXTCOLOR', ''); //doesn't matter
define('NO_HEADER_TEXT', true ); //don't mess with the header text
define('HEADER_IMAGE', '%s/images/logo.jpg'); // %s is theme dir uri
define('HEADER_IMAGE_WIDTH', 1150);
define('HEADER_IMAGE_HEIGHT', 95);
function ecommerce_header_style() {
?>
<style type="text/css">
#header {
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
background: url(<?php header_image(); ?>) bottom left no-repeat;
}
</style>
<?php }
function ecommerce_admin_header_style() {
?>
<style type="text/css">
#headimg {
display: block;
margin: 0px; padding: 0px;
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
background: url(<?php header_image(); ?>) top left no-repeat;
}
#headimg h1, #headimg #desc {
display: none;
}
</style>
<?php }
add_custom_image_header('ecommerce_header_style', 'ecommerce_admin_header_style'); //Add the custom header
?>
[/QUOTE]
|
Autor: lol32
Publicado: 27-3-2011 05:56 AM |
| Imposible saber el error con eso. Intenta sacar fotos y subir todos los archivos, ya que van por includes, define, etc... y es dificil saber que está mal. |
|