Why did my Shopify product description disappear?

pvdkrogt1
New Member
4 0 0
For no apparent reason (no change in code or new app install), the product description on my product pages disappeared. It was working fine for weeks
 
Any suggestions? 
 
The product description is visible in Shopify 
 

and If I go to the page and use inspect I can see the content in the div

class="clearfix product_form ....
 
below that is the div class="description bottom" but with no content, I am not sure if that is normal...
 
I have tried in Shopify > themes > customize to move the description to the top to see if anything changes, but no results
 
also, I have checked the product-template.liquid ....
 
 {% if section.settings.product_description_position == "top" %}
            {% if product.description != blank %}
             <div class="description" itemprop="description">
               {% if product.description contains '<!-- split -->' %}{{ product.description | split: '<!-- split -->' | first  }}{% else %}{% include 'product-description-tabs' %}{% endif %}
             </div>
           {% endif %}
          {% endif %}
 
          {% unless collection_handles contains 'coming-soon' %}
            {% include 'product-form' with 'product' %}
          {% endunless %}
 
          {% if section.settings.product_description_position == "bottom" %}
            {% if product.description != blank %}
             <div class="description bottom" itemprop="description">
              {% if product.description contains '<!-- split -->' %}{{ product.description | split: '<!-- split -->' | first  }}{% else %}{% include 'product-description-tabs' %}{% endif %}
             </div>
            {% endif %}
          {% endif %}
Replies 3 (3)

tim
Shopify Expert
3258 232 1178

Here it is:

{% if product.description contains '<!-- split -->' %}
  {{ product.description | split: '<!-- split -->' | first  }}
{% else %}
  {% include 'product-description-tabs' %}
{% endif %}

So, what's in product-description-tabs Snippet

pvdkrogt1
New Member
4 0 0

Thanks for your reply, there are 2 snippets from the easytabs app

product-description-tabs-bottom.liquid

<!-- DO NOT EDIT THIS SNIPPET - it's generated automatically and may be overwritten at any time -->
{% if product-description-tabs-bottom %}{% assign desc = product-description-tabs-bottom %}{% else %}{% assign desc = product.description %}{% endif %}
{% capture td %}{% include "product-description-tabs" with desc %}{% endcapture %}
{% assign td_pure_text = td | split: '<div class="easytabs-container' | first | prepend: ' ' %}
{% if td_pure_text == ' ' %}{% assign td_bottom = td %}{% else %}{% assign td_pure_text = td_pure_text | remove_first: ' ' %}{% assign td_bottom = td | replace: td_pure_text, '' %}{% endif %}
{{ td_bottom }}

product-description-tabs-top.liquid

<!-- DO NOT EDIT THIS SNIPPET - it's generated automatically and may be overwritten at any time -->
{% if product-description-tabs-top %}{% assign desc = product-description-tabs-top %}{% else %}{% assign desc = product.description %}{% endif %}
{% capture td %}{% include "product-description-tabs" with desc %}{% endcapture %}
{% assign td_pure_text = td | split: '<div class="easytabs-container' | first %}
{{ td_pure_text }}

 

 

pvdkrogt1
New Member
4 0 0

Hi again,

I was not using easytabs so I just deleted the if...else and it worked, no idea why all of a sudden it stopped working, but thanks for helping out!

 

     {% if section.settings.product_description_position == "top" %}
            {% if product.description != blank %}
             <div class="description" itemprop="description">
               {{ product.description | split: '<!-- split -->' | first }}
             </div>
           {% endif %}
          {% endif %}

          {% unless collection_handles contains 'coming-soon' %}
            {% include 'product-form' with 'product' %}
          {% endunless %}

          {% if section.settings.product_description_position == "bottom" %}
            {% if product.description != blank %}
             <div class="description bottom" itemprop="description">
              {{ product.description | split: '<!-- split -->' | first }}
             </div>
            {% endif %}
          {% endif %}