Adding FontAwesome Icon to Accordion in Twig Template

28/06/2018


I’m trying to reference a Font Awesome Icon field I created in the Accordion Section Bootstrap paragraph type through the Accordion’s twig template so that it displays alongside the title. I can’t seem to print the icon using twig (the icon is in the field with the machine name ‘field_section_icon’), see the code below.

{# Loop through all of the accordion sections. #}
    {% for key, item in content.bp_accordion_section if key|first != '#' %}
      

قالب وردپرس