Tagged: performance
Hi, I would like to use the av_font_icon shortcode as shown in https://kriesi.at/documentation/enfold/icon/ in my child theme.
When I place the shortcode I get the notice that I have to enable the element in the theme settings. I see that I can enable it by selecting always load all template builder elements but I would like to keep it at “load only used elements”. Is there a way to manually load only the icon element and keep the setting?
figured it myself… I needed to remove the element from the disabled_assets array in template-builder
add_filter('avf_disable_frontend_assets', function ($assets) {
if(in_array('av_font_icon', $assets)) {
unset($assets['av_font_icon']);
}
return $assets;
}, 50);
Hi lxbdr,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria