tv360
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Sorry about that Bryle – I had updated staging but not production yet. Here is the production log with version 1.16.41:
https://gist.github.com/rmbaumer/410c98be7731265780ab2a444b6fff35
Thanks,
MichaelI had the same problem and was able to resolve hooking into pum_popup_content and filtering out empty lines, comments, and empty p tags. Drop this into your functions.php or plugin:
/** * Fix for Popup Maker Gutenberg compatibility * Need to strip out comments, blank lines and empty paragraph tags */ add_filter( 'pum_popup_content', 'veer_popup_maker_gutenburg_compat' ); function veer_popup_maker_gutenburg_compat($content) { $content = preg_replace('!/\*.*?\*/!s', '', $content); // empty lines $content = preg_replace('/<!--(.|\s)*?-->/', '', $content); // block editor comments $content = preg_replace('/<p[^>]*><\\/p[^>]*>/', '', $content); // empty p tags return $content; }Note that pum_popup_content only runs when a popup is saved/updated. So to see the change, you’ll need to click update since the popups are cached.
Hopefully this saves someone out there some time!
Viewing 2 replies - 1 through 2 (of 2 total)