Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you want to completely remove those ? or only when you don’t have featured images in the posts?

    If you want to completely remove .

    1)Best way is to create a child theme but it seems Simvance theme is not child theme compatible..because of usage of get_stylesheet_directory_uri() instead of get_template_directory_uri() in some files.
    http://codex.wordpress.org/Function_Reference/get_template_directory_uri
    http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri

    That featured image code comes from here

    <div class="featured-thumb col-md-4 col-xs-12">
    	<a href="<?php the_permalink(); ?>">
    	<?php if (has_post_thumbnail()) :
    		the_post_thumbnail('homepage-thumb');
    		  else: ?>
    		 <img src="<?php echo get_stylesheet_directory_uri()."/images/dthumb.png"; ?>">
    		<?php
    	endif;
    	?>
    	</a>
    	</div>

    in content.php of the theme.

    Completely remove and have space: Remove the following.

    <a href="<?php the_permalink(); ?>">
    	<?php if (has_post_thumbnail()) :
    		the_post_thumbnail('homepage-thumb');
    		  else: ?>
    		 <img src="<?php echo get_stylesheet_directory_uri()."/images/dthumb.png"; ?>">
    		<?php
    	endif;
    	?>
    	</a>

    Remove only when you don’t have featured image:remove the following.

    <img src="<?php echo get_stylesheet_directory_uri()."/images/dthumb.png"; ?>">

    These changes will get lost if the theme updates and you didn’t create the child theme.

    2)Instead have different image placeholder there.
    replace the ‘dbthumb.png’ image in images folder with your own image.

    Thread Starter nalilina

    (@nalilina)

    Thank you a lot, bravokeyl! 🙂

    Olá, to passando de fórum em fórum para ver se consigo resolver um problema no meu site! A questão é a seguinte: Uso o tema Simvance, quando configuro uma imagem destacada, eu queria que ela só aparecesse na pagina inicial e quando abrisse o post não aparecesse mais!! Alguém, por favor, pode me ajudar!
    Meu site é http://futebolsemlimites.com.br

    Grato!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feadured image’ is closed to new replies.