` above the link, the click lands on the graphic and Enfold drops it: the search box * seems to open at random. The rule below lets every click through to the link. * * Printed whenever Enfold is the active template (child themes included), whatever form the search box * holds: the bug is Enfold's. A site can drop it with `wp_dequeue_style( 'asl-enfold-compat' )` after * `wp_enqueue_scripts`. */ class EnfoldSearchIcon implements IntegrationInterface { use SingletonTrait; public const HANDLE = 'asl-enfold-compat'; public const CSS = '#top #menu-item-search > a svg { pointer-events: none; }'; public function register(): void { add_action('wp_enqueue_scripts', array( $this, 'enqueue' )); } public function deregister(): void { remove_action('wp_enqueue_scripts', array( $this, 'enqueue' )); } /** * @hook wp_enqueue_scripts */ public function enqueue(): void { if ( get_template() !== 'enfold' ) { return; } // No file: the handle only carries the inline rule, so caching and minify plugins treat it like any other style. wp_register_style(self::HANDLE, false, array(), ASL_CURR_VER_STRING); wp_enqueue_style(self::HANDLE); wp_add_inline_style(self::HANDLE, self::CSS); } }