How can I display product vendor name in an accordion tab?

It might be an ineffective method to solve this issue but I tried to add {{ product.vendor }} within tab3_content since the content of the Vendor Tab in the product page was coming from tabs.liquid.

So I located tab3_content within tabs.liquid nd replaced {{ tab3_content }} with {{ product.vendor }}:

{%- if tab3_title != blank and tab3_content != blank -%}
    
      {%- if display_type == "accordion" -%}
        
          {{ tab3_title }}
        
      {%- endif -%}
      

        {{ product.vendor }}
      

    

  {%- endif -%}

It is doing the job for now, but might encounter problems later on.

See how the product vendor renders within the tabs on product page below:

Thanks for the help everybody!!

1 Like