L
linares88
Curioso
Verificado por Whatsapp
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
<?php
/**
* The template for displaying all single posts.
*
* [MENTION=3037]Link[/MENTION] [url]https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post[/url]
*
* @package resi
*/
get_header(); ?>
<?php if ( 'option1' == resi_sanitize_index_content( get_theme_mod( 'resi_blog_sidebar_setting', 'option1' ) ) ) : //Fullwidth and no sidebar ?>
<div class="grid grid-pad solid-background single-fullwidth">
<?php else : ?>
<div class="grid grid-pad solid-background">
<?php endif; ?>
<?php if ( 'option1' == resi_sanitize_index_content( get_theme_mod( 'resi_blog_sidebar_setting', 'option1' ) ) ) : //Fullwidth and no sidebar ?>
<div class="col-1-1">
<?php else : ?>
<div class="col-9-12">
<?php endif; ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'single' ); ?>
<?php the_post_navigation(); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // End of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php if ( 'option1' == resi_sanitize_index_content( get_theme_mod( 'resi_blog_sidebar_setting', 'option1' ) ) ) : //Fullwidth and no sidebar ?>
</div>
<?php else : ?>
</div>
<?php endif; ?>
<?php if ( 'option1' == resi_sanitize_index_content( get_theme_mod( 'resi_blog_sidebar_setting', 'option1' ) ) ) : //Fullwidth and no sidebar ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<?php if ( 'option1' == resi_sanitize_index_content( get_theme_mod( 'resi_blog_sidebar_setting', 'option1' ) ) ) : //Fullwidth and no sidebar ?>
</div>
<?php else : ?>
</div>
<?php endif; ?>
<?php get_footer(); ?>
<?php get_template_part( 'template-parts/content', 'single' ); ?>
<?php
/**
* Template part for displaying posts.
*
* [MENTION=3037]Link[/MENTION] [url]https://codex.wordpress.org/Template_Hierarchy[/url]
*
* @package resi
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail( 'full', array( 'class' => 'archive-img' ) ); ?>
</a>
<?php endif; ?>
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php resi_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if ( 'option2' == resi_sanitize_index_content( get_theme_mod( 'resi_post_content' ) ) ) :
the_content( sprintf(
/* translators: %s: Name of current post. */
wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'resi' ), array( 'span' => array( 'class' => array() ) ) ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
) );
else :
the_excerpt( __( '<span class="screen-reader-text">"', '"</span>', false ) );
endif;
?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'resi' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php resi_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail( 'full', array( 'class' => 'archive-img' ) ); ?>
</a>
<?php endif; ?>
Borra esto:
PHP:<?php if ( has_post_thumbnail() ) : ?> <a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail( 'full', array( 'class' => 'archive-img' ) ); ?> </a> <?php endif; ?>
Muchas gracias lucasm, pero lo borré y sigue igual con la imagen destacada dentro:ambivalence:
Usas algún plugin de cache?
No lucasm, no se que puede ser, sabrías si es el php correcto que comentó Vred, porque estoy probando tanto en ese como en content-single.php y creo que sería en este último.
Aunque estoy muy verde todavía con esto, jeje
Muchas gracias!😉
No utilizo Wordpress me guié por el ultimo código que publicaste no te sabría decir.
No pasa nada lucasm, gracias por tu ayuda!!
Creo que también se puede hacer desde el style.css
Estoy buscando ahí también, algún día lo encontraré:ambivalence:. soy bastante novato en cuanto a esto pero entiendo que borrando lo que me comento lucasm debería funcionar.
Estoy buscando ahí también, algún día lo encontraré:ambivalence:. soy bastante novato en cuanto a esto pero entiendo que borrando lo que me comento lucasm debería funcionar.
.single.single-post .archive-img.wp-post-image {
display: none !important;
}
Ahora me fijo a ver si se puede...
- - - Actualizado - - -
Proba agregando este código en el style:
Insertar CODE, HTML o PHP:.single.single-post .archive-img.wp-post-image { display: none !important; }
Beta75 muchísimas gracias!!!! me ha funcionado perfectamente. llevaba 2 días con esto... jajaja🙄
De nada amigo, para eso estamos :encouragement:
Beta75 después de cambiarlo en PC funciona perfecto, pero en plataforma móvil sigue saliendo igual :ambivalence:
Sabrías que tendría que hacer.
Gracias por tu tiempo🙂
Edito: ya está todo bien, no se que ha podido pasar. Gracias amigo!
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?