Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Hide Header, Announcement Bar and Footer on Landing Page

Solved

Hide Header, Announcement Bar and Footer on Landing Page

Dutsford
Shopify Partner
5 0 2

Hi Guys,

 

I'm trying to hide the header, announcement bar & footer on a landing page we're working on. We're using Focal theme for this and it seems like it's not as simple as it is on other themes (non dev btw 😂)

 

Any idea on how this can be done?

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9037 2160 2664

This is an accepted solution.

Hi @Dutsford 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

{% if template.name == 'index' %}
<style>
.header, div#shopify-section-announcement-bar, div#shopify-section-footer {
    display: none;
}
</style>
{% endif %}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1731324422033.png

     

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 9 (9)

Moeed
Shopify Partner
6301 1711 2057

Hey @Dutsford 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


Dutsford
Shopify Partner
5 0 2

Hi Moeed!

 

Thanks for your quick response! URL below:

 

simonnewtonlondon.com

Moeed
Shopify Partner
6301 1711 2057

Hey @Dutsford 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

{% if template == 'index' %}
<style>
.announcement-bar, .header, footer {
    display: none !important;
}
</style>
{% endif %}

RESULT:

Moeed_0-1731324101680.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


Dutsford
Shopify Partner
5 0 2

Thanks!

 

How would i do this on: https://simonnewtonlondon.com/pages/bfcm-2024

Moeed
Shopify Partner
6301 1711 2057

Keep the previous code and add this new code above </body> in the end of theme.liquid file

{% if page.handle == "bfcm-2024" %}
<style>
.announcement-bar, .header, footer {
    display: none !important;
}
</style>
{% endif %}

RESULT:

Moeed_0-1731324515470.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Create high-converting pages - PageFly Page Builder.


Made4uo-Ribe
Shopify Partner
9037 2160 2664

This is an accepted solution.

Hi @Dutsford 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

{% if template.name == 'index' %}
<style>
.header, div#shopify-section-announcement-bar, div#shopify-section-footer {
    display: none;
}
</style>
{% endif %}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1731324422033.png

     

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Dutsford
Shopify Partner
5 0 2

when i do it with 'index' it does it on all pages, however I only need it on template name 'landing-page' but this wont work when I replace Index for some reason

Dutsford
Shopify Partner
5 0 2

Ignore me, done it!

 

Thanks!

Made4uo-Ribe
Shopify Partner
9037 2160 2664

Welcome, Would you mind hitting 'like' as well? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.