Quitar la imagen destacada del post por completo
-
Hola,
Quisiera quitar la imagen destacada del resultado de búsqueda, es decir que no aparezca por ningun lado. Aunque no la ponga el tema que uso, mantiene el espacio sin sin la imagen.
He visto que han resuelto el problema en una anterior consulta, pero no me sirve esa solución.
En single.php no hay referencia a imágenes, sólo una llamada a contet.php que si contiene información de imágenes.Adjunto el código de content.php aquí:
<?php /** * The template for displaying all single posts. * * @package Theme name */ global $themen_options; $themen_settings = get_option('themen_options',$themen_options); if ( is_array( $themen_settings ) && ! empty( $themen_settings )) { extract($themen_settings); } get_header(); ?> <?php $single_post_layout = get_post_meta($post->ID,'themen_page_layout', true); $default_post_layout = ($single_post_layout == 'default_layout') ? $default_post_layout : $single_post_layout; // Dynamically Generating Classes for #primary on the basis of page layout $content_class = ''; switch($default_post_layout){ case 'left_sidebar': $content_class = 'left-sidebar'; break; case 'right_sidebar': $content_class = 'right-sidebar'; break; case 'both_sidebar': $content_class = 'both-sidebar'; break; case 'no_sidebar_wide': $content_class = 'no-sidebar-wide'; break; case 'no_sidebar_narrow': $content_class = 'no-sidebar-narraow'; break; } ?> <?php while ( have_posts() ) : the_post(); ?> <main id="main" class="site-main <?php echo $content_class; ?>" role="main"> <div class="ap-container"> <?php if($default_post_layout == 'both_sidebar') : ?> <div id="primary-wrap" class="clearfix"> <?php endif; ?> <div id="primary" class="content-area"> <?php get_template_part( 'content', 'single' ); ?> <?php the_post_navigation(); ?> <?php if($enable_comments_post == 1) : ?> <?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 endif; ?> </div><!-- #primary --> <?php if($default_post_layout == 'left_sidebar' || $default_post_layout == 'both_sidebar') : ?> <?php get_sidebar('left'); ?> <?php endif; ?> <?php if($default_post_layout == 'both_sidebar') : ?> </div> <!-- #primary-wrap --> <?php endif; ?> <?php if($default_post_layout == 'right_sidebar' || $default_post_layout == 'both_sidebar') : ?> <?php get_sidebar('right'); ?> <?php endif; ?> </div><!-- tn-container --> </main><!-- #main --> <?php endwhile; // end of the loop. ?> <?php get_footer(); ?>Gracias por la ayuda que me puedan brindar.
Viendo 1 respuesta (de un total de 1)
Viendo 1 respuesta (de un total de 1)
El debate ‘Quitar la imagen destacada del post por completo’ está cerrado a nuevas respuestas.