SVG’s

Page Builder Framework 2.7 allows you to replace the built-in icon font with SVG’s to achieve slightly better performance scores.

This is a great idea, if you don’t actively use Page Builder Frameworks icon font on your website yourself.

To see what icons are available, please have a look at the Icon Font article from our docs.

To use SVG’s in your theme, you can call a built-in function that renders the SVG icon for you:

echo wpbf_svg( 'hamburger' );

Enable SVG’s

Premium Add-On users will find a dedicated setting to enable SVG’s in the Performance Settings section. If you don’t have the Premium Add-On installed, no worries. There is a filter that you can add to your child-themes functions.php file that will enable SVG’s for you.

add_filter( 'wpbf_svg', '__return_true' );

Last updated on: October 25th, 2021


Related Articles

Scroll to Top

Download

Download Page Builder Framework and be the first to get informed about new features & updates!

OR

Get 10% off our Premium Add-On (yearly plan).
Coupon Code to enter during checkout: 10OFF View Pricing