title: Shopify/liquid - adding classes and removing injected text
body: <p>I'm working on a Shopify (slate) theme with very limited experience. There's a few classes I need to add which I've managed on images but can't find a way to do this on an anchor included within <code>&lt;h2 class="mosaic__title p-name"&gt;{{ item.title | link_to: item.url }}&lt;/h2&gt;</code>.</p>
  
  <p>Also I have some prices that has text like "On Sale from" injected before it. I don't know how this is added or how to remove it. Here's an example:</p>
  
  <pre><code>&lt;del&gt;{{ item.compare_at_price | money }}&lt;/del&gt;
  {% assign sale_price = item.price | money %}
  {{ 'products.product.on_sale_from_html' | t: price: sale_price }}
  </code></pre>
  
  <p>I've tried removing the <code>.on_sale_from_html</code> and <code>t: price: sale_price</code> but that doesn't work/it breaks.</p>
  
  <p>Can anyone advise on this? Thanks!</p>
  
  <p>Full section of code for reference:</p>
  
  <pre><code>&lt;div class="mosaic__caption"&gt;
    &lt;h2 class="mosaic__title p-name"&gt;{{ item.title | link_to: item.url }}&lt;/h2&gt;
  
    {% if item.object_type == 'product' %}
      &lt;p class="mosaic__value"&gt;
        {% if item.compare_at_price &gt; item.price %}
          {% if item.price_varies %}
            &lt;del&gt;{{ item.compare_at_price | money }}&lt;/del&gt;
            {% assign sale_price = item.price | money %}
            {{ 'products.product.on_sale_from_html' | t: price: sale_price }}
          {% else %}
            {{ 'products.product.on_sale' | t }}
            &lt;data itemprop="price" class="p-price"&gt;{{ item.price | money }}&lt;/data&gt;
          {% endif %}
          &lt;data class="visually-hidden p-price"&gt;{{ 'products.product.regular_price' | t }}&lt;/data&gt;
        {% else %}
          {% if item.price_varies %}
            {% assign price = item.price | money %}
            &lt;data itemprop="price" class="p-price"&gt;{{ 'products.product.from_text_html' | t: price: price }}&lt;/data&gt;
          {% else %}
            &lt;data itemprop="price" class="p-price"&gt;{{ item.price | money }}&lt;/data&gt;
          {% endif %}
        {% endif %}
        {% unless item.available %}
        {{ 'products.product.sold_out' | t }}
        {% endunless %}
      &lt;/p&gt;
    {% else %}
      &lt;p&gt;{{ item.content | strip_html | truncatewords: 50 }}&lt;/p&gt;
    {% endif %}
  &lt;/div&gt;
  </code></pre>