• Resolved mariska83

    (@mariska83)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    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

    (@mariska83)

    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

    (@mariska83)

    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

    (@bungeshea)

    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.