Title: Removing button syntax error
Last modified: August 30, 2016

---

# Removing button syntax error

 *  Resolved [Tales Scopinho](https://wordpress.org/support/users/tales-scopinho/)
 * (@tales-scopinho)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-button-syntax-error/)
 * Hi, I’m a baby at wp and I downloaded the Enigma theme. I was working on one 
   of my posts and I realised that the “category” button wasn’t a nice idea there.
   So I opened post-content.php file to see what I could do. Unfortunetly, trying
   to remove that button, I made a mystake that lead to a parse error: syntax error,
   unexpected. I don’t know what I did and how can I fix it. Please, can you guys
   help me?
 * `<h2><?php if(!is_single(<a href="<?php (the_permalink()); ?> ?>"><?php } ?><?
   php the_title(); ?></a></h2>`

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

 *  [Mr Case](https://wordpress.org/support/users/mr-case/)
 * (@mr-case)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-button-syntax-error/#post-6807371)
 * give this a go
 * `<h2><?php if (!is_single) { ?><a href="<?php the_permalink(); ?>"><?php the_title();?
   ></a><?php } else { ?><?php the_title(); ?><?php } ?></h2>`
 *  [weblizar_support](https://wordpress.org/support/users/weblizar_support/)
 * (@weblizar_support)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-button-syntax-error/#post-6807435)
 * Hi,
 * Please don’t apply your changes in theme files.
 * Let us know what you changes you want.
 * Please make child theme and create post-content.php in child theme directory.
 * Now copy code from [LINK ](http://cryptb.in/Lf#8779c48e16114ab092df84fc86061176)
   and paste to post-content.php that you create in child theme directory.
 * Save the changes.
 * Thanks.
 *  Thread Starter [Tales Scopinho](https://wordpress.org/support/users/tales-scopinho/)
 * (@tales-scopinho)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-button-syntax-error/#post-6807518)
 * Thank all you guys! 🙂
 *  [weblizar_support](https://wordpress.org/support/users/weblizar_support/)
 * (@weblizar_support)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/removing-button-syntax-error/#post-6807534)
 * Hi,
 * Most Welcome.
 * Thanks.

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

The topic ‘Removing button syntax error’ is closed to new replies.

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

 * 4 replies
 * 3 participants
 * Last reply from: [weblizar_support](https://wordpress.org/support/users/weblizar_support/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/removing-button-syntax-error/#post-6807534)
 * Status: resolved