Tagged: enfold, performance
-
AuthorPosts
-
June 11, 2018 at 3:39 am #970923
Hi,
After upgrading my site and setting the ‘Load only used elements’ in the Performance settings, some of my elements are not being loaded. I have a sidebar widget containing a Custom HTML element which contains av_icon_list and av_iconlist_item code. This icon_list and and items are not being loaded – I suspect this is because they are only referenced by HTML code.How does Performance settings work in this scenario as it does not seem to detect that I am using the icon_list and therefore it needs to be loaded. If I switch back to ‘Always load elements’ everything works.
Regards
AlanJune 11, 2018 at 11:10 am #971070Hey Alan,
Try enabling Avia Layout Debugger, instructions to enable it can be found here: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#debug-mode
Then edit the page where you have iconlist, at the bottom you should see Enfold Shortcode Parser then set it to Auto Repair Function enabled and update the page.
Hope this helps.Best regards,
NikkoJune 12, 2018 at 5:35 am #971519Hi Nikko,
After trying your suggestion the page reports no errors in the short codes, when I subsequently set the Performance to ‘Load Only Used Elements’ the icon list still reports it is disabled.
As I mentioned in my original question, the icon list is displayed on the page via a Sidebar using the Custom HTML widget. The markup in the sidebar widget is correct as it works perfectly when I set the Performance to ‘Always load elements’.
Unfortunately, there is no layout builder when working with widgets and I suspect the algorithm for detecting which layout items are used on a particular site does not look at the content of widgets which is why it doesn’t detect that I need the icon list loaded.
Regards
AlanJune 14, 2018 at 12:46 am #972553Hi,
Thanks for the update. Create a new page, add the icon list element and replace the widget with the Page Content element. Select the newly created page in the “Which Entry?” option.
Best regards,
IsmaelJune 15, 2018 at 7:19 am #973116Thanks Ismael.
I’ve actually taken a simpler route. I changed my page to a 2/3 and 1/3 layout and added Text Blocks, Icon List and Google Map content items into the 1/3 section (duplicating what was in my sidebar). I was then able to get rid of the sidebar from that page. My only issue is that I no longer have a vertical border between the two content areas (I don’t want a border around the whole element – just on one side).
I still firmly believe that the new performance settings do not work when using a layout builder directly inside a Sidebar widget (such as Custom HTML) and this should warrant further testing.
Regards
AlanJune 16, 2018 at 6:23 pm #973687Hi Alan,
Well, partial border can be added to that page like this:
.page-template-default.page.page-id-21 .container_wrap .avia-builder-el-first { border-right: 1px solid #ccc; padding-right: 20px; }
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.