N
nentab
Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php if(has_post_thumbnail()) : ?>
<div class="post_image">
<?php echo get_the_post_thumbnail(null, 'thumbnail'); ?>
</div>
<?php endif; ?>
<a href="XXX"><?php echo get_the_post_thumbnail(null, 'thumbnail'); ?></a>
/**
* Sets the post excerpt length to 40 words.
*
* To override this length in a child theme, remove the filter and add your own
* function tied to the excerpt_length filter hook.
*/
function twentyeleven_excerpt_length( $length ) {
return 40;
}
add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' );
<?php if ( has_post_thumbnail()) {
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
echo get_the_post_thumbnail($post->ID, 'thumbnail');
echo '</a>';
} ?>
if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) )
if ( ! is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) )
<?php if ( has_post_thumbnail()) {
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" class="thumbnail-image" >';
echo get_the_post_thumbnail($post->ID, 'thumbnail');
echo '</a>';
} ?>
.thumbnail-image img {
width: auto;
}
3) Ah, si, me olvide. En el single.php, agrega esto:
[code]<?php get_sidebar(); ?>
<?php get_footer(); ?>
.single-author .entry-meta .by-author {
display: none;
}
add_filter( 'body_class', 'twentyeleven_body_classes' );
Edita el functions.php y elimina la ultima linea (Nº 592):
Insertar CODE, HTML o PHP:add_filter( 'body_class', 'twentyeleven_body_classes' );
Ta' quedando lindo el theme 🙂
Podés probar con el plugin Thumbnail for experts. saludos
<?php the_tags('<div class="caja-titulo">Etiquetas</div><div class="caja-contenido">', ', ', '</div>'); ?>
<div class="entry-meta"> <?php twentyeleven_posted_on(); ?>
</div><!-- .entry-meta -->
<div class="entry-meta">
<?php twentyeleven_posted_on(); ?> en <?php the_categories(', '); ?>.
</div><!-- .entry-meta -->
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
if ( '' != $tag_list ) {
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} elseif ( '' != $categories_list ) {
$utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
} else {
$utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
}
printf(
$utility_text,
$categories_list,
$tag_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' ),
get_the_author(),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
);
?>
<a href="<?php the_permalink(); ?>" title="Permalink a <?php the_title_attribute(); ?>" rel="bookmark">Guarda enlace permanente</a>
<div class="entry-meta"> <?php twentyeleven_posted_on(); ?> en <?php the_category(', '); ?>.
</div><!-- .entry-meta -->
1) En el archivo content.php, busca:
Reemplaza por:Insertar CODE, HTML o PHP:<?php if ( is_search() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?>
Insertar CODE, HTML o PHP:<div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary -->
2) Debes agregar algo como esto en el content.php y en el content-single.php:
Tu te encargas del CSS 😛Insertar CODE, HTML o PHP:<?php if(has_post_thumbnail()) : ?> <div class="post_image"> <?php echo get_the_post_thumbnail(null, 'thumbnail'); ?> </div> <?php endif; ?>
3) A mi se me ve correctamente...[/QUO
Hola, estoy siguiendo los pasos que das para ubicar una imagen en la parte izquierda pero aun no me aparece, Espero me puedas ayudar
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?