FacetWP – force-remove the fwp-loop HTML comment tag

<?php
// The fwp-loop HTML comment is used in FacetWP's query- and loop detection, to add the 'facetwp-template' class to its parent HTML element.
// Only force-remove this HTML comment if you are adding the 'facetwp-template' class manually to a post loop container element.
// fix for oxygen hero image with background-image inline style

add_action( 'init', function() {
    remove_action( 'loop_start', [ FWP()->display, 'add_template_tag' ] );
    remove_action( 'loop_no_results', [ FWP()->display, 'add_template_tag' ] );
}, 20 );