# Stop Beaver Builder Loading Font Awesome for Visitors

> Removes the Font Awesome icon stylesheets that Beaver Builder loads on the front end, for sites whose layouts use no Font Awesome icons.

- Type: PHP
- Runs: Frontend only
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: beaver-builder, icons, performance
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/beaver-builder-remove-font-awesome/

## Code

```php
// Stylesheet handles to remove.
$wpide_bb_icon_handles = array( 'font-awesome', 'font-awesome-5' );

add_action( 'wp_enqueue_scripts', function () use ( $wpide_bb_icon_handles ) {
    if ( is_user_logged_in() || isset( $_GET['fl_builder'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
        return;
    }

    foreach ( $wpide_bb_icon_handles as $handle ) {
        wp_dequeue_style( $handle );
    }
}, 999 );
```

## Notes

Check your pages after enabling it: any Font Awesome icons in modules will disappear. Logged-in users keep the icons so the builder works.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Beaver Builder Loading Font Awesome for Visitors" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
