Title: Help needed please
Last modified: December 5, 2019

---

# Help needed please

 *  Resolved [mtrehearn](https://wordpress.org/support/users/mtrehearn/)
 * (@mtrehearn)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/help-needed-please-8/)
 * Hi,
 * I love the plugin and want to change from another plugin to this one but I am
   having a bit of trouble implementing it. I have an element on my site that I 
   want to hide until cookies are accepted. To do this at the moment I put the element
   in a class and have a function that is:
 * function showelement() {
    var y = document.getElementsByClassName(“show”); var
   i; for (i = 0; i < y.length; i++) { y[i].style.display = “block”; }
 *  var y = document.getElementsByClassName(“hide”);
    var i; for (i = 0; i < y.length;
   i++) { y[i].style.display = “none”; } }
 * And all I do is call the function when they accept or call another function to
   hide it (basically the opposite of the above) when they revoke it and when it
   is revoked it just shows a “content hidden” type image.
 * How can I implement that using your plugin?
 * Thanks for the help.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * (@mooveagency)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/help-needed-please-8/#post-12218481)
 * Hi [@mtrehearn](https://wordpress.org/support/users/mtrehearn/),
 * Thanks for using our plugins.
 * The easiest way to achieve your goal is using an extra class to your sections,
   like .gdpr-hide-thirdparty
    The CSS for this class could be :
 *     ```
       .gdpr-hide-thirdparty {
       display: none;
       }
       ```
   
 * And in the GDPR Cookie Compliance -> Third party section you can add the following
   script:
 *     ```
       <script>
       jQuery('.gdpr-hide-thirdparty').removeClass('gdpr-hide-thirdparty');
       </script>
       ```
   
 * By this the sections with this extra class will be hidden until your visitors
   accepts your cookies.
 * You can find our hooks, PHP and JavaScript functions in the plugin’s “Help” section
   in your admin area.
 * Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Help needed please’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-compliance/assets/icon-256x256.png?rev=2376316)
 * [GDPR Cookie Compliance - Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law](https://wordpress.org/plugins/gdpr-cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Moove Agency](https://wordpress.org/support/users/mooveagency/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/help-needed-please-8/#post-12218481)
 * Status: resolved