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

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

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 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' %}

{% endif %}

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

Hi @Olllie

Thanks for your reply! I replaced the page handle with “dedicated-landing-page-m3vnzlcf” then added it before , (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?