We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Hide navigation bar and footer on a specific landing page - Prestige Theme

Hide navigation bar and footer on a specific landing page - Prestige Theme

liu_x_trujillo1
Excursionist
29 0 11

I am designing a landing page to drive ad traffic, and I'd like to remove the navigation bar on this page only.

I created a custom template specifically for this landing page, but when I removed the navigation bar in this template, it disappeared across the entire website. Could anyone please let me know how to resolve this issue?

 

Website URL: embroidtale.com

WIP LP URL: https://embroidtale.com/pages/lp/dedicated-landing-page-m3vnzlcf

 

1.png

Replies 2 (2)

Olllie
Shopify Partner
121 11 23

 

Hey, Give this a go. 

 

  1. Navigate to Online Store > Themes > Edit code. (you may wish to duplicate your theme, so you can test out of production)

  2. Open your layout/theme.liquid file.

  3. Just above the closing </head> tag, add the following code (make sure to replace the handle text with the handle name of your page):

 

{% if page.handle == 'enter-the-page-handle' %}
<style>
.header__primary-nav { display: none !important; }
</style>
{% endif %}

 

 

Let me know if this doesn’t work. If it does, please remember to mark this as the solution.

 

Ollie | Founder & Developer of autoBlogger and autoSchema

autoBlogger: Seamlessly scheduled, fully automated, AI-powered, and SEO-optimised blogging with FAQs, table of contents and other features! Start your 14-day free trial today!


autoSchema: Fully automated and continuously updated Google structured data, including duplicate data removal. Simple to install – try it now!


Discover more at autoBlogger.bot!

liu_x_trujillo1
Excursionist
29 0 11

Hi @Olllie 

 

Thanks for your reply! I replaced the page handle with "dedicated-landing-page-m3vnzlcf" then added it before <head>, (see below screenshot) but it didn't work. Should we make any further adjustment to the code? BTW, my page-handle looks very weird with the string "m3vnzlcf". Do you have any idea what that is?

Screenshot 2024-11-01 110549.png