Title: comment broke the code?
Last modified: August 20, 2016

---

# comment broke the code?

 *  [phinn](https://wordpress.org/support/users/phinn/)
 * (@phinn)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/)
 * I was asked to take out the bottom footer that has the wordpress copyright and
   such. I had commented out some code just to check and see if it was what needed
   to go, it wasn’t, but when i took out the comment marks and nothing else it broke
   the following if statement saying it had an unexpected ‘}’

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176400)
 * Try reversing your changes.
 *  Thread Starter [phinn](https://wordpress.org/support/users/phinn/)
 * (@phinn)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176402)
 * i did when i took out the comment marks, that’s the only thing i had changed
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176403)
 * Then put them back and see if that clears the error.
 *  Thread Starter [phinn](https://wordpress.org/support/users/phinn/)
 * (@phinn)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176405)
 * sorry if i wasn’t wording this properly but the comment wasn’t originally there,
   i added it, it didn’t work, i out the comment i added and it broke the next if
   statement somehow without even touching it
 *  Thread Starter [phinn](https://wordpress.org/support/users/phinn/)
 * (@phinn)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176414)
 *     ```
       /** Add disclaimer below footer */
   
       add_action( 'genesis_after', 'agentpress_disclaimer' );
   
       /**
   
        * Add disclaimer widget area on Genesis after hook
   
        *
   
        */
   
       function agentpress_disclaimer() {
   
       	if ( is_active_sidebar( 'disclaimer' ) ) {
   
       		echo '<div class="disclaimer">';
   
       		genesis_structural_wrap( 'disclaimer' );
   
       		dynamic_sidebar( 'disclaimer' );
   
       		genesis_structural_wrap( 'disclaimer', 'close' );
   
       		echo '</div><!-- end .disclaimer -->';
   
       	}		
   
       }
       ```
   
 * here’s the section of code in question. i was looking up where to find the copyright
   text and was told to check function.php. so i tested this
 *     ```
       /**add_action( 'genesis_after', 'agentpress_disclaimer' );*/
       ```
   
 * which didn’t work, i reversed my actions and now it has a problem with the last
   curly bracket listed
 *  Thread Starter [phinn](https://wordpress.org/support/users/phinn/)
 * (@phinn)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176423)
 * after an hour of freaking out, and then my tab refreshed at some point which 
   made it worse because the error wouldn’t even let me visit the page to edit the
   code, it fixed it self. what the heck? i’m glad it did, but this doesn’t make
   sense at all

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

The topic ‘comment broke the code?’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [phinn](https://wordpress.org/support/users/phinn/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/comment-broke-the-code/#post-3176423)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
