Title: Compatibility Issue with WPIDE Plugin
Last modified: April 2, 2024

---

# Compatibility Issue with WPIDE Plugin

 *  Resolved [sebastianbraune](https://wordpress.org/support/users/sebastianbraune/)
 * (@sebastianbraune)
 * [2 years ago](https://wordpress.org/support/topic/compatibility-issue-with-wpide-plugin/)
 * Hi,
 * I’m using the WPIDE-Plugin to edit the wordpress files on-site in the backend.
   When editing a file that includes a <body>-Element, Complianz automatically inserts“
   data-cmplz=1” into the body tag, even if it already has that element. This causes
   both data inconsistency as it keeps adding the same information to the body tag
   repeatedly, and also causes the WPIDE plugin to no longer work correctly with
   any elements that contain a body tag.
 * Is there a way to disable this automatic insertion, since I have made sure to
   include it manually?
 * Greetings
   Sebastian Braune
    -  This topic was modified 2 years ago by [sebastianbraune](https://wordpress.org/support/users/sebastianbraune/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcompatibility-issue-with-wpide-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Really Simple Plugins](https://wordpress.org/support/users/reallysimpleplugins/)
 * (@reallysimpleplugins)
 * [2 years ago](https://wordpress.org/support/topic/compatibility-issue-with-wpide-plugin/#post-17547543)
 * You can use the filter cmplz_cookie_blocker_output to strip off the attribute.
   It is not required for front-end functionality, only to confirm the blocker is
   working as expected. So you can safely remove it.
 * add_filter(‘cmplz_cookie_blocker_output’, ‘my_cmplz_remove_attribute’);
   function
   my_cmplz_remove_attribute($html){ return str_replace(‘data-cmplz=1’,”,$html);
 * }
 *  Thread Starter [sebastianbraune](https://wordpress.org/support/users/sebastianbraune/)
 * (@sebastianbraune)
 * [2 years ago](https://wordpress.org/support/topic/compatibility-issue-with-wpide-plugin/#post-17547585)
 * Thank you for the easy solution. For anyone encountering the same issue, there’s
   a small tweak you’ll need for this line of code, since it also pastes a space.
   
   Just replace
 * return str_replace(‘data-cmplz=1’,”,$html);
 * with
 * return str_replace(‘data-cmplz=1 ’,”,$html);
 *  Thread Starter [sebastianbraune](https://wordpress.org/support/users/sebastianbraune/)
 * (@sebastianbraune)
 * [2 years ago](https://wordpress.org/support/topic/compatibility-issue-with-wpide-plugin/#post-17550845)
 * One more addition, because that string replace would also work on the functions.
   php file, there’s another edit I had to do – build the string in two parts, so
   the full string would never be shown in one line. The new function looks like:
   
   function my_cmplz_remove_attribute($html){$replace_str = ‘data-cmplz’;$replace_str.
   = ‘=1 ‘;return str_replace( $replace_str,”,$html);}add_filter(‘cmplz_cookie_blocker_output’,‘
   my_cmplz_remove_attribute’);

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

The topic ‘Compatibility Issue with WPIDE Plugin’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [sebastianbraune](https://wordpress.org/support/users/sebastianbraune/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/compatibility-issue-with-wpide-plugin/#post-17550845)
 * Status: resolved