How to have footer show on homepage only?

Solved
Highlighted
Tourist
5 0 1

Using Pop theme, what do I need to do to have my footer display on only the homepage, not every page on my site? I've done a few searches, but nothing worked yet. www.plannermania.ca

Thank you!

0 Likes
Highlighted
Shopify Partner
242 59 122

This is an accepted solution.

Hi @Dierdre,

 

I understand that you only want to show the footer on your homepage – not every page on your site.

 

I may be able to help you. Try this out:

 

Before you customize your theme:

  • Duplicate your theme to create a backup copy. This makes it easy to discard your changes and start again if you need to.

 

How to display the footer only on the homepage:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Click Actions > Edit code.
    • The code editor shows a directory of theme files on the left, and a space to view and edit the files on the right.
    • When you click a file in the directory on the left, it opens in the code editor.
  3. In the Layout folder, click the theme.liquid file.
  4. Replace this line of code:
    {% section 'footer' %}
    With this line of code:
    {% if template == 'index' %}{% section 'footer' %}{% endif %}
  5. Click Save.

 

Let me know if this solves your problem or if you need further help!

Brian | Shopify Partner | Ecommerce Consultant
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution  
 - Need further assistance? Visit www.BrianAtWork.com

Highlighted
Tourist
5 0 1
Yes! It works! Thank you so much for your help!
Highlighted
Tourist
5 0 1
Thank you! Works perfectly!
0 Likes
Highlighted
New Member
2 0 0

Hi there.  Whilst I was looking for a solution to a problem similar to this I saw your reply, and was hoping you might be able to help me?  I'm trying to hide the header on all of my pages, but keep the footer.  Do you know how I would be able to do that?

 

Thanks a lot for any help you can give me

0 Likes