How do I change the footer of my collection and product pages independently?

How do I change the footer of my collection and product pages independently?

namaya_crafts
Visitor
3 0 0

I need to make a different template for the footer of my collections-, product- & cart pages, to remove social media buttons and 3 column information links. But it is all connected now. Everything I add or remove on homepage will be changed as well as on my collection / product pages etc. It's all connected and I would like to be able to change that separately. 

Thank you in advance. 

Reply 1 (1)
namaya_crafts
Visitor
3 0 0

I don't understand coding to be honest. I'm in theme code's editor and I've made a new template, selected collection and called it collection.footer-custom.liquid . How do I change or remove the footer on collection page? It all still happens in this file I just made in edit codes? It's empty so I think I understand I need to put the codes in that file. But which codes do I need to put:
```liquid
{% if template == 'index' %}
{% include 'footer' %}
{% elsif template == 'collection' or template == 'product' or template == 'cart' %}
{% include 'footer-custom' %}
{% else %}
{% include 'footer' %}
{% endif %}

Do I need to copy paste this, or only use a few codes to make a specific change. For example just to remove the social media icons in footer. Which code do I use?