Hide a <hr> code on a page, using end if argument?

Not sure if this makes sense, So I have a HR line that ive included on all pages but on the product page i would like to be hidden.

can this be done with and end iff statement?


                  

---

  			{%- section 'text-columns-with-icons' -%}
  			{%- section 'footer' -%}
      

Hi @MHWEBSITE ,

You can try below condition:


        {% unless template contains 'product' %}
        

---

        {% endunless %}
  	{%- section 'text-columns-with-icons' -%}
  	{%- section 'footer' -%}

Hope it can help you

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.