> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/hooks/filters/css-and-js/asp_load_css.md).

# asp/assets/load/css

```php
apply_filters('asp/assets/load/css', $load);
```

### Parameters

* **$load** *(bool)* - when true, the stylesheet (CSS) files are loaded

### Examples

```php
// Stops loading Ajax Search Pro stylesheet (CSS) files everywhere except the archives
add_filter( 'asp/assets/load/css', function ( $load ) {
    if ( is_archive() ) {
        return true;
    }
    return false;
}, 10, 1 );

// Stops loading Ajax Search Pro stylesheet (CSS) file everywhere except singular pages
add_filter( 'asp/assets/load/css', function ( $load ) {
    if ( is_singular() ) {
        return true;
    }
    return false;
}, 10, 1 );
```
