Why isn't my collection description showing on Fashionopolism theme?

Hi - I know this has been asked and solved before but this seems specific to my theme. I have the collection title appearing but cannot understand where/what to do with the code to allow the collection description to appear also. I understand the solution to this is posted elsewhere but it doesn’t seem to relate to the code for my theme.

Theme I am using is Fashionopolism version 4.3.2, if that makes a difference.

I really need a basic copy/paste/insert code here solution, as I am not that proficient.

Thanks in advance.

Hi @omnis ,

Can you share your store URL? Also, share the link to the tutorial that you followed (which didn’t work for your store).

Hi @omnis ,

Please send me the code of collection-template.liquid file, I will check and guide you in detail

Hi, thanks for replying.

collection-template-liquid file below:

{% case section.settings.grid %}
{% when ‘2’ or 2 %}
{%- assign grid_item_width = ‘desktop-6 tablet-3 mobile-half’ -%}
{% when ‘3’ or 3 %}
{%- assign grid_item_width = ‘desktop-4 tablet-2 mobile-half’ -%}
{% when ‘4’ or 4 %}
{%- assign grid_item_width = ‘desktop-3 tablet-2 mobile-half’ -%}
{% endcase %}

{%- assign product_limit = section.settings.grid | times: section.settings.rows -%}
{% paginate collection.products by product_limit %}

{{ collection.title }}

{% if collection.image %}
{{ collection.image.src | collection_img_url: '1200x' | img_tag: collection_title }}
{% endif %}
    {% if section.settings.sort_by %}
  • {% include 'bc-sf-filter-skeleton', width: 3 %}
  • {% endif %}

{% comment %}{% endcomment %}

{% include 'bc-sf-filter-skeleton', type: 'button' %}
{% comment %} Include placeholder template {% endcomment %} {% include 'bc-sf-filter-tree-placeholder' %}
{% assign products-per-row = section.settings.products-per-row %} {% for product in collection.products %}
{% include 'product-listing' %}
{% endfor %}

{% endpaginate %}

{% schema %}

{
“name”: “Collection”,
“max_blocks”:4,
“settings”: [
{
“type”: “select”,
“id”: “grid”,
“label”: “Products per row”,
“default”: “4”,
“options”: [
{
“value”: “2”,
“label”: “2”
},
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
}
]
},
{
“type”: “select”,
“id”: “rows”,
“label”: “Rows”,
“default”: “2”,
“options”: [
{
“value”: “1”,
“label”: “1”
},
{
“value”: “2”,
“label”: “2”
},
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
},
{
“value”: “5”,
“label”: “5”
},
{
“value”: “6”,
“label”: “6”
},
{
“value”: “7”,
“label”: “7”
},
{
“value”: “8”,
“label”: “8”
},
{
“value”: “9”,
“label”: “9”
},
{
“value”: “10”,
“label”: “10”
}

]
},
{
“type”: “checkbox”,
“id”: “sort_by”,
“label”: “Show sort by”,
“default”: true
},
{
“type”: “paragraph”,
“content”: “Your customers can filter collections using tags that you have added to your products. See our setup instructions for these filters.”
},
{
“type”: “text”,
“id”: “filter-1-title”,
“label”: “Filter 1 title”,
“default”: “Filter by X”
},
{
“type”: “textarea”,
“id”: “sort_a”,
“label”: “Filter 1 tags”,
“info”: “Comma separated”
},
{
“type”: “text”,
“id”: “filter-2-title”,
“label”: “Filter 2 title”,
“default”: “Filter by Y”
},
{
“type”: “textarea”,
“id”: “sort_b”,
“label”: “Filter 2 tags”,
“info”: “Comma separated”
},
{
“type”: “text”,
“id”: “filter-3-title”,
“label”: “Filter 3 title”,
“default”: “Filter by Z”
},
{
“type”: “textarea”,
“id”: “sort_c”,
“label”: “Filter 3 tags”,
“info”: “Comma separated”
}
],
“blocks”:[
{
“type”:“menu”,
“name”:“Menu”,
“settings”:[
{
“type”: “link_list”,
“id”: “side_nav”,
“label”: “Sidebar menu”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Menu title”,
“default”: “Explore”
}
]
},

{
“type”:“vendor_list”,
“name”:“Vendor list”,
“limit”: 1,
“settings”:[
{
“type”: “text”,
“id”: “shop_by_designer_title”,
“label”: “Vendor list title”,
“default”: “Shop by Designer”
}
]
}
]
}
{% endschema %}

Hi @omnis ,

Please add code here:

Code:

{% if collection.description != blank %}
    
      {{ collection.description }}
    

{% endif %}

Hope it helps!

Hey

that has fixed it for me. I really appreciate your time and expertise on this.

Thanks again..

Hi @omnis ,

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

Hi there

I am having the same issue, but can’t find a solution from other posts given the unique nature of my theme. The full code for my collection.liquid file is pasted below. I would just like the collection description to appear below the colelction title, such as on this page: https://www.glowwormbicycles.com.au/collections/urban-commuter

I’d appreciate any help :slightly_smiling_face:

{%- liquid
assign hidden_cat = settings.use_hidden_cat
assign type_filters = settings.type_filters
assign shop_filters = settings.shop_filters
assign show_list_switch = settings.show_list_switch
assign admin_sp = request.design_mode
assign class_main = '12'
assign shop_des = settings.shop_des
assign no_sidebar = true
assign shop_sidebar = settings.shop_sidebar
if hidden_cat == false 
  case shop_sidebar
    when 'right'
      assign no_sidebar = false
      case settings.shop_size_sidebar
        when '1'
          assign class_main = '10 order-1 '
          assign class_sidebar = '2 order-12 '
        when '2'
          assign class_main = '9 order-1 '
          assign class_sidebar = '3 order-12 '
         when '3'
          assign class_main = '8 order-1 '
           assign class_sidebar = '4 order-12 '
      endcase
    when 'left'
      assign no_sidebar = false
      case settings.shop_size_sidebar
        when '1'
          assign class_main = '10'
          assign class_sidebar = '2'
        when '2'
          assign class_main = '9'
          assign class_sidebar = '3'
        when '3'
          assign class_main = '8'
          assign class_sidebar = '4'
       endcase
   endcase
elsif shop_sidebar == 'left' or shop_sidebar == 'right'
   assign no_sidebar = false 
   assign class_sidebar = '12'
endif
assign cat_des = settings.cat_des
assign hd_up = 'sub-' |append:collection.id
assign nav_up = linklists[hd_up].links | where:'type','collection_link'
if type_filters == '1'
 assign nt_filter = 'nt_filter'
 assign lz_filter = 'lazyloadt4s'
 assign sidebar_shop = 'sidebar_shop'
else 
 assign nt_filter = 'nt_filter2'
 assign lz_filter = ''
 assign sidebar_shop = 'sidebar_shop2'
endif
assign IsShowSUBcat = false
assign IsShowPRS = true
assign IsShowDesSUB = true
if nav_up.size > 0
  assign IsShowSUBcat = true
  assign IsShowPRS = settings.show_pr_sub
  assign IsShowDesSUB = settings.show_des_sub
endif -%}

{%- section 'cat_heading' -%}{%- section 'cat_shop' -%}

{%- if cat_des == '2' and IsShowDesSUB %}{{ collection.description}}
{%- endif -%}
{%- if nav_up.size > 0 %}{% section 'sub-collections' %}{% endif -%}

{%- if IsShowPRS -%}
  
     {%- assign get_url = '' | link_to_remove_tag: '' | split:'href="' | last | split:'"' | first | remove:'?customer_posted=true' -%}
     {%- assign sy = collection.sort_by -%}
     {%- if collection.current_type or sy != blank or collection.current_vendor or get_url contains '?' %}{% assign get_url = get_url | append:'&' %}{% else %}{% assign get_url = get_url | append:'/?' %}{% endif -%}
     {%- assign sort_by = sy | default: collection.default_sort_by -%}
     

        

        {%- assign ck = true -%}
        {%- if settings.shop_filters -%}
           {{ 'collections.general.filter' | t }}
           {{ 'collections.general.filter' | t }}
        {%- elsif hidden_cat and no_sidebar == false -%}{%- assign ck = false -%}
           

              {{ 'collections.general.sidebar' | t }}
           

        {%- elsif no_sidebar == false -%}
           
              {{ 'collections.general.sidebar' | t }}
           

        {%- endif -%}
        

        
        {%- if settings.show_column_switch and shop_des != 'packery' -%}
           

               {%- if show_list_switch %}{% endif -%}
               
               
               
               {%- if no_sidebar or hidden_cat -%}{%- endif -%}
               {%- if no_sidebar or hidden_cat -%}{%- endif -%}
           

           
               {%- if show_list_switch %}{% endif -%}
               
               
               
           

           
               {%- if show_list_switch %}{% endif -%}
               
               
           

        {%- endif -%}
        

        {%- if no_sidebar == false and settings.shop_filters and ck -%}
        
           

              {{ 'collections.general.sidebar' | t }}
           
 
           {%- assign option_selected = collection.sort_options | where:"value",sort_by -%}
              {{- option_selected.first.name -}}{{ 'collections.sorting.title' | t }}
              

                
                
{{ 'collections.sorting.title' | t }}

                
                 {%- if type_filters == '2' -%}

                      {%- assign nt_canonical_url = canonical_url | replace:'for_offest','for_no_offest' | replace:'?q=%2f%3fq%3d','?q=' -%}
                      {%- assign txt_current_page = '?page=' |append:current_page -%} 
                      {%- assign key_block = 'for_no_offest%3d' | append:get_fillter_offset -%}
                      {%- assign key_block2 = '+nt+for_no_offest%3d' | append:get_fillter_offset -%}
                      {%- assign sortby_url = nt_canonical_url | remove:key_block2 | remove:key_block | remove:txt_current_page | replace:'+nt+&sort_by','&sort_by' -%}

                      {%- if nt_canonical_url contains sort_by -%}
                        {%- for option in collection.sort_options -%}
                          {{ option.name }}
                        {%- endfor -%}
                      {%- else -%}
                        {%- for option in collection.sort_options -%}
                          {{ option.name }}
                        {%- endfor -%}
                      {%- endif -%}
                 {%- else -%}
                    
                      {%- if get_url contains sort_by -%}
                        {%- for option in collection.sort_options %}{{ option.name }}{% endfor -%}
                      {%- else -%}
                        {%- for option in collection.sort_options %}{{ option.name }}{% endfor -%}
                      {%- endif -%}

                 {%- endif -%}
                

              

           

        

        {%- elsif settings.sort_enable -%}
            {%- assign option_selected = collection.sort_options | where:"value",sort_by -%}
              {{- option_selected.first.name -}}{{ 'collections.sorting.title' | t }}
              

                
                
{{ 'collections.sorting.title' | t }}

                
                 {%- if type_filters == '2' -%}

                      {%- assign nt_canonical_url = canonical_url | replace:'for_offest','for_no_offest' | replace:'?q=%2f%3fq%3d','?q=' | replace:'+nt++nt+','+nt+' -%}
                      {%- assign txt_current_page = '?page=' |append:current_page -%} 
                      {%- assign key_block = 'for_no_offest%3d' | append:get_fillter_offset -%}
                      {%- assign key_block2 = '+nt+for_no_offest%3d' | append:get_fillter_offset -%}
                      {%- assign sortby_url = nt_canonical_url | remove:key_block2 | remove:key_block | remove:txt_current_page -%}
                      
                      {%- if nt_canonical_url contains sort_by -%}
                        {%- for option in collection.sort_options -%}
                          {{ option.name }}
                        {%- endfor -%}
                      {%- else -%}
                        {%- for option in collection.sort_options -%}
                          {{ option.name }}
                        {%- endfor -%}
                      {%- endif -%}
                 {%- else -%}
                    
                      {%- if get_url contains sort_by -%}
                        {%- for option in collection.sort_options %}{{ option.name }}{% endfor -%}
                      {%- else -%}
                        {%- for option in collection.sort_options %}{{ option.name }}{% endfor -%}
                      {%- endif -%}

                 {%- endif -%}
                

              

            

        {%- else -%}

        {%- endif -%}
     

     {%- if shop_filters and admin_sp -%}
           
{% if type_filters == '1' %}{%- section 'nt_filter' -%}{% else %}{%- section 'nt_filter2' -%}{% endif %}

       {%- elsif shop_filters -%}
          

     {%- endif -%}

     
        {%- if no_sidebar == false and admin_sp -%}
{% if type_filters == '1' %}{%- section 'sidebar_shop' -%}{% else %}{%- section 'sidebar_shop2' -%}{% endif %}

        {%- elsif no_sidebar == false -%}

{%- endif -%}
        {%- section 'collection_page' -%}

     

  

{%- endif -%}
{%- if cat_des == '3' and IsShowDesSUB %}{{ collection.description}}
{%- endif -%}