Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #1145467

    Setting ‘load only used elements’ for the ‘Disabling of template builder elements’ does still load unused css an js files in the front end:

    /themes/enfold/config-templatebuilder/avia-shortcodes/gallery/gallery.js js

    This is the list of loaded files in the front end on a page that has been created with ALB but has no a single element in it. In fact it is an empty page. Footer widgets and socket are disabled. The site has no plugins installed and the enfold child theme has no modifications.

    Changing the setting to ‘manually manage loaded elements’ and checking all elements (disabling all of theme) makes no difference. Still those js and css files of the above listed elements get loaded.


    Hey Michael,

    Thank you for the inquiry.

    Some of the elements have to be disabled manually because they are still use by other elements or templates in the site. For example, the gallery is still loaded because it is required by the default gallery shortcode. Another example is the post slider css, which is still loaded despite the settings because the archive page requires its stylesheets when the blog layout is set to “grid”.

    Best regards,


    Hi Ismael

    thank you for your reply. I already thought this might be the reason but e.g. layerslider resources or google maps resources should not be loaded if you don’t use the elements. I think the list should be reviewed carefully.

    Kind regards




    Thank you for the update.

    We will forward your concern to the team. For now, you can prevent the Google map script from loading using the “avf_load_google_map_api_prohibited” filter. Unfortunately, I’m not really sure why the “disabling_allowed” parameter is not included in the layer slider shortcode template. I’ll get back to you on that.

    Best regards,


    Ismael, you said “Some of the elements have to be disabled manually because they are still use by other elements or templates in the site.” Can you point us toward how to manually disable a builder block? Or, in my case, how to enable one when “Load only used elements” is selected? I’m using a block in a custom widget area in the header and the icon list in the widget doesn’t work when I have the “Disable Template Builder Elements” set to “Load only used elements”.




    @kevinmcgillivray: There is a third option in the “Disabling of template builder elements” settings where you can manually select which element/s to disable on load. Have you tried that option?

    Best regards,


    I haven’t because, as much as possible, I’d like to try to let your system manage things. Is there some a way to force the one block to load on every page? Can you point me toward any code that might give me a hint at how to do it?


    Hi kevinmcgillivray,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support.

    Best regards,




    In theme options -> Performance -> Disable Template Builder Elements you have a selectbox:

    Scan Widgets for Theme Shortcodes

    Did you try to select “Scan Widgets”


Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.