For example:
add_filter( 'bricks/frontend/render_element', function( $html, $element ) {
return '<div id="whatever">Hello</div>';
}, 10, 2 )
On the frontend, all elements are replaced by “Hello”. In the builder, Nav Menus render without the filter.
If this is intentional, what is the workaround? I just want to search and replace a few strings, but it’s no good if it doesn’t show in the editor.