Title: error with . and {
Last modified: July 23, 2018

---

# error with . and {

 *  Resolved [mariska83](https://wordpress.org/support/users/mariska83/)
 * (@mariska83)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-with-and/)
 * Hi
    I’m struggling to implement a suggested code change for my site. In the theme
   there is an automatic hover box over the employees that are listed. They suggested
   putting in this bit of code to remove that
 * .pop-overlay {
    display: none; }
 * but I get this error: The snippet has been deactivated due to an error on line
   1:
 * syntax error, unexpected ‘.’
 * when I remove the ‘.’ on the first line it then has a problem with the {
 * Can you help me solve this?
    Thanks Mariska
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-with-and%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-with-and/#post-10519043)
 * Hi Mariska,
 * The issue here is that this plugin expects you to use PHP snippets, like you 
   would find in plugins.
 * In order to add CSS code to the front-end of your site, you will need to wrap
   it in some PHP code:
 *     ```
       add_action( 'wp_head', function () { ?>
   
       <style>
       	.pop-overlay {
       		display: none;
       	}
       </style>
   
       <?php } );
       ```
   
 *  Thread Starter [mariska83](https://wordpress.org/support/users/mariska83/)
 * (@mariska83)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-with-and/#post-10520741)
 * Thanks, I figured it would be something like that. I’ve put in the code but now
   I’m getting this error
 * The snippet has been deactivated due to an error on line 3:
 * syntax error, unexpected ‘&’
 *  Thread Starter [mariska83](https://wordpress.org/support/users/mariska83/)
 * (@mariska83)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-with-and/#post-10525776)
 * I’ve just noticed that it was a problem with the copy pasting I did changing 
   the characters. All sorted now 🙂
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-with-and/#post-10526213)
 * Excellent! I’m glad to hear that it’s all working 🙂
 * Also, I am sure I typed a reply out to your last post; not sure why I didn’t 
   send it :/

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

The topic ‘error with . and {’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/error-with-and/#post-10526213)
 * Status: resolved