Title: error message after adding snippet
Last modified: February 1, 2021

---

# error message after adding snippet

 *  Resolved [thunderstrikemarketing](https://wordpress.org/support/users/thunderstrikemarketing/)
 * (@thunderstrikemarketing)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-message-after-adding-snippet/)
 * Entered the following code via code snippets & received the error message found
   on the link provided ([http://staging2.goldenstatefloors.com/](http://staging2.goldenstatefloors.com/)):
 * if ( is_singular( ‘product’ ) ) {
    wc_get_template_part( ‘content’, ‘single-product’);}
   else { wc_get_template_part( ‘content’, ‘single-product’ ); }
 * How/where do I removed this line of code and get (1) my site back up and (2) 
   the previous snippets created functional again?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-message-after-adding-snippet%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘error message after adding snippet’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thunderstrikemarketing](https://wordpress.org/support/users/thunderstrikemarketing/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/error-message-after-adding-snippet/)
 * Status: resolved