FacetWP – force-load assets for specific page(s)

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

// Load assets on the “about” page (https://yoursite.com/about/)
// Add the following to your (child) theme’s functions.php

add_filter( ‘facetwp_load_assets’, function( $bool ) {
if ( ‘about’ == FWP()->helper->get_uri() ) {
$bool = true;
}
return $bool;
});

{{/gist}}