Title: How to remove code
Last modified: August 22, 2016

---

# How to remove code

 *  Resolved [noajou](https://wordpress.org/support/users/noajou/)
 * (@noajou)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-code-1/)
 * I want to remove this code:
 * <?php if ( (function_exists(‘has_post_thumbnail’)) && (has_post_thumbnail()) ){
   the_post_thumbnail(array( 200,200 ), array( ‘class’ => ‘post_thumbnail’ )); }?
   >
 * from the ‘single.php’ to remove the feature image from my posts. (so that the
   feature image is only visible on the main page)
 * Does anyone know how to do this using the custom css box? (when I open the single.
   php in the editor I am not getting the usual code, that is why this is hopefully
   a more convenient way, if possible)
 * All the best,
    Noah

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kye](https://wordpress.org/support/users/gmax21/)
 * (@gmax21)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-code-1/#post-5235600)
 * Hey there,
 * CSS can’t remove PHP code, it had the display output but the code is still run.
 * This theme has some in post options regarding how header of the post will display.
 * [http://monosnap.com/image/IHB2J9exYFjp6IYMD1sqMCOY1rx2EN](http://monosnap.com/image/IHB2J9exYFjp6IYMD1sqMCOY1rx2EN)
 * I then took a look at the code for single.php and /templates/content-single.php
   but I don’t see what you posted. You are using the Virtue theme right?
 * Or maybe I’m missing it?
 * Take care.
 *  Thread Starter [noajou](https://wordpress.org/support/users/noajou/)
 * (@noajou)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-code-1/#post-5235604)
 * Hey Timothy,
 * I am just a little bit stupid, I didn’t notice that when writing a post I must’ve(
   accidentally) changed the ‘head content’ to ‘Image’. Which was the reason for
   the feature image showing in the post. My problem is solved now.
 * Thank you very much for the effort!
 * All the best,
    Noah
 *  [Kye](https://wordpress.org/support/users/gmax21/)
 * (@gmax21)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-code-1/#post-5235605)
 * Excellent, glad I could help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to remove code’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

## Tags

 * [removing code](https://wordpress.org/support/topic-tag/removing-code/)
 * [virtue theme](https://wordpress.org/support/topic-tag/virtue-theme/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kye](https://wordpress.org/support/users/gmax21/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/how-to-remove-code-1/#post-5235605)
 * Status: resolved