Liquid, JavaScript, themes, sales channels
Hello!
I am not a coder and don't understand much with html so I created a new "page" for my site that is apparently a metaobject?? You can see the page here:
https://takonlife.com/pages/whytakonworks/body-healthy-sleep
I'd like to be able to remove the header from just this page, but keep the logo. So I want to remove the navigation menu, search bar and the cart icon.
How would I do it for only this page?
Thank you!!
Brett
Solved! Go to the solution
This is an accepted solution.
Hello @Pelakin ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your theme.scss.liquid or theme.scss.css file and paste the following code below:
body.template-metaobject\/new_page .site-header__icons {
display: none;
}
body.template-metaobject\/new_page nav#AccessibleNav {
display: none;
}
Thanks
This is an accepted solution.
Hello @Pelakin ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your theme.scss.liquid or theme.scss.css file and paste the following code below:
body.template-metaobject\/new_page .site-header__icons {
display: none;
}
body.template-metaobject\/new_page nav#AccessibleNav {
display: none;
}
Thanks
Thank you, Guleria. That worked perfectly!
Brett
User | RANK |
---|---|
38 | |
30 | |
12 | |
12 | |
8 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023