Reworked plugin logic and integration in front-page.php