Made Description into Collapsible Row but Name is empty

PPnet
New Member
5 0 0

Okay so I cant use metafileds for my description because of different reasons, so I used this Code to make a collapsible row out of my description:

 

 {%- when 'description' -%}
  {%- if product.description != blank -%}
    <div class="product__accordion accordion quick-add-hidden" {{ block.shopify_attributes }}>
      <details id="Details-{{ block.id }}-{{ section.id }}">
         <summary>
            <div class="summary__title">
               {% render 'icon-accordion', icon: block.settings.icon %}
               <h2 class="h4 accordion__title">
                  {{ block.settings.heading | default: block.settings.page.title }}
               </h2>
            </div>
            {% render 'icon-caret' %}
         </summary>
         <div class="accordion__content rte" id="ProductAccordion-{{ block.id }}-{{ section.id }}">
            {{ product.description }}
         </div>
      </details>
    </div>
{%- endif -%}

 


That worked fine, but there is no heading for the collapsible row.
I want to rename the collapsible row "description" but I dont know how to do that.

It looks like this:
Screenshot 2023-09-20 141415.jpg

 

Can somebody help me out with this?

Kind regards


Replies 0 (0)