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’);
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);