Site Performance
BuddyX Theme overviewFree + ProGet BuddyX Theme →
The Site Performance section holds settings that change how much your pages download. It has one setting: Load Font Awesome.
What You Can Do
Section titled “What You Can Do”- Stop loading the Font Awesome icon font (about 250 KB of CSS and font files) on every page
- Keep every theme icon working either way: header icons, menus, BuddyPress headers, post formats, share buttons and shop pieces
- Keep Font Awesome for the plugins and icon choices that still need it
Load Font Awesome
Section titled “Load Font Awesome”BuddyX Pro draws its own icons as SVG, so the theme does not need Font Awesome. Some icons on a site still can:
- Icons a plugin prints itself. Many BuddyPress add-ons print Font Awesome icons.
- Font Awesome classes you entered or picked yourself: menu icons (the Buddyx icon type), the top bar left content and social links, profile social links, course feature icons, and HTML in the copyright text.
Leave the setting on if your site shows any of these. Turn it off when none are used, to save the download.
- Go to Appearance > Customize
- Click General > Site Performance
- Switch Load Font Awesome to Disable
- Click Publish
Default: Enable. Setting ID: site_load_fontawesome.
| Setting | Effect |
|---|---|
| Enable | Font Awesome loads on every page, as in earlier versions |
| Disable | Font Awesome does not load. The theme’s own icons still show. |
Check Your Site After Turning It Off
Section titled “Check Your Site After Turning It Off”Open the pages that use a plugin or an icon you picked yourself: the side panel menu, the top bar, a member profile with social links, a course page. An icon that shows as an empty box or a blank space is a Font Awesome icon. Either switch Load Font Awesome back on, or replace that icon.
Moving From BuddyX Free
Section titled “Moving From BuddyX Free”The setting uses the same name as in BuddyX free (Site Performance > Load Font Awesome). When you switch from BuddyX to BuddyX Pro, your choice is copied over with your other shared settings.
For Developers
Section titled “For Developers”The buddyxpro_load_fontawesome filter decides whether the stylesheet loads, after the Customizer setting. When it returns false, the stylesheet is only registered, so a plugin can still load it on its own pages:
// Load Font Awesome only on the shop.add_filter( 'buddyxpro_load_fontawesome', function ( $load ) { return function_exists( 'is_woocommerce' ) && is_woocommerce();} );
// Or enqueue the registered stylesheet where a template needs it.wp_enqueue_style( 'buddyxpro-load-fontawesome' );See Hooks & Filters for the full filter reference.

