Skip to content

The Site Performance section holds settings that change how much your pages download. It has one setting: Load Font Awesome.

  • 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

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.

  1. Go to Appearance > Customize
  2. Click General > Site Performance
  3. Switch Load Font Awesome to Disable
  4. 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.

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.

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.

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.