Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Richard Cruz

Como remover a imagem destacada dentro de um post worpress?

Recommended Posts

Ola gostaria de saber como removo a imagem destacada que é criada dentro das postagens no wordpress?

Estou procurando faz algum tempo.

 

OBS: Quero remover somente a da postagem e não a da index

 

Sou novato em worpress

Compartilhar este post


Link para o post
Compartilhar em outros sites

Buenas tchê.

 

Edite o arquivo single.php e remova a parte do código que tenha a função the_post_thumbnail();

Compartilhar este post


Link para o post
Compartilhar em outros sites

Não tem the_post_thumbnail() dentro do single.php

<?php global $theme; get_header(); ?>

    <div id="main">
    
        <?php $theme->hook('main_before'); ?>
    
        <div id="content">
            
            <?php $theme->hook('content_before'); ?>
        
            <?php 
                if (have_posts()) : while (have_posts()) : the_post();
                    /**
                     * Find the post formatting for the single post (full post view) in the post-single.php file
                     */
                    get_template_part('post', 'single');
                endwhile;
                
                else :
                    get_template_part('post', 'noresults');
                endif; 
            ?>
            
            <?php $theme->hook('content_after'); ?>
        
        </div><!-- #content -->
    
        <?php get_sidebars(); ?>
        
        <?php $theme->hook('main_after'); ?>
        
    </div><!-- #main -->
    
<?php get_footer(); ?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Buenas tchê.

 

Edite o arquivo single.php e remova a parte do código que tenha a função the_post_thumbnail();

 

Não tem the_post_thumbnail() dentro do single.php

<?php global $theme; get_header(); ?>

    <div id="main">
    
        <?php $theme->hook('main_before'); ?>
    
        <div id="content">
            
            <?php $theme->hook('content_before'); ?>
        
            <?php 
                if (have_posts()) : while (have_posts()) : the_post();
                    /**
                     * Find the post formatting for the single post (full post view) in the post-single.php file
                     */
                    get_template_part('post', 'single');
                endwhile;
                
                else :
                    get_template_part('post', 'noresults');
                endif; 
            ?>
            
            <?php $theme->hook('content_after'); ?>
        
        </div><!-- #content -->
    
        <?php get_sidebars(); ?>
        
        <?php $theme->hook('main_after'); ?>
        
    </div><!-- #main -->
    
<?php get_footer(); ?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Olá, estou com o mesmo problema, porém não sei que parte remover desse código, onde começo a remover e onde finalizo, o site sai do ar, será que to fazendo algo errado! veja o código...

 

<?php get_header(); ?>

<div class="span-24" id="contentwrap">

<div class="span-16">

<div id="content">

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div <?php post_class() ?> id="post-<?php the_ID(); ?>">

<h2 class="title"><?php the_title(); ?></h2>

<div class="postdate">Posted by <strong><?php the_author() ?></strong> on <?php the_time('F jS, Y') ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> | <?php edit_post_link('Edit', '', ''); } ?></div>

 

<div class="entry">

<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array("class" => "alignleft post_thumbnail")); } ?>

<?php the_content('Read the rest of this entry »'); ?>

<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

</div>

<div class="postmeta"><img src="<?php bloginfo('template_url'); ?>/images/folder.png" /> Posted in <?php the_category(', ') ?> <?php if(get_the_tags()) { ?> <img src="<?php bloginfo('template_url'); ?>/images/tag.png" /> <?php the_tags('Tags: ', ', '); } ?></div>

<div class="navigation clearfix">

<div class="alignleft"><?php previous_post_link('« %link') ?></div>

<div class="alignright"><?php next_post_link('%link »') ?></div>

</div>

 

<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {

// Both Comments and Pings are open ?>

You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.

 

<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {

// Only Pings are Open ?>

Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.

 

<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {

// Comments are open, Pings are not ?>

You can skip to the end and leave a response. Pinging is currently not allowed.

 

<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {

// Neither Comments, nor Pings are open ?>

Both comments and pings are currently closed.

 

<?php } edit_post_link('Edit this entry','','.'); ?>

</div><!--/post-<?php the_ID(); ?>-->

<?php comments_template(); ?>

<?php endwhile; ?>

<?php endif; ?>

</div>

</div>

<?php get_sidebars(); ?>

</div>

<?php get_footer(); ?>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.