Liquid, JavaScript, themes, sales channels
hi im using Kalles 2.7.2 templete
i want to remove the header and navigation bar, and footer... help me plz
its same page!!
url : https://phinetworks.myshopify.com/
Solved! Go to the solution
This is an accepted solution.
Hi @Phigolf,
Please follow these steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to layout > theme.liquid, find 'content_for_header' and add code here: https://i.imgur.com/oc7ADNT.png => https://i.imgur.com/6nfZbIg.png
+ With 1 product:
{%- if product.handle == 'product handle' -%}
<style>
/* hide header navigation */
header .nt_navigation{
display: none !important;
}
/* hide breadcrumb */
.breadcrumb_pr_wrap{
display: none !important;
}
/* hide footer */
footer{
display: none !important;
}
</head>
</style>
{%- endif -%}
+ With 2 products:
{%- if product.handle == 'product 1 handle' or product.handle == 'product 2 handle' -%}
<style>
/* hide header navigation */
header .nt_navigation{
display: none !important;
}
/* hide breadcrumb */
.breadcrumb_pr_wrap{
display: none !important;
}
/* hide footer */
footer{
display: none !important;
}
</head>
</style>
{%- endif -%}
Ex: with https://phinetworks.myshopify.com/collections/phigolf-1/products/phigolf-line-friends-edition
=>
product handle: phigolf-line-friends-edition
Code:
{%- if product.handle == 'phigolf-line-friends-edition' -%}
<style>
/* hide header navigation */
header .nt_navigation{
display: none !important;
}
/* hide breadcrumb */
.breadcrumb_pr_wrap{
display: none !important;
}
/* hide footer */
footer{
display: none !important;
}
</head>
</style>
{%- endif -%}
Hope it helps!
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find layout/theme.liquid and paste this at the bottom of the file:
{%if product.handle == "enter the product handle" %}
<style>
header#ntheader {
display: none;
}
footer#nt_footer {
display: none;
}
</style>
{%endif%}
This is an accepted solution.
Hi @Phigolf,
Please follow these steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to layout > theme.liquid, find 'content_for_header' and add code here: https://i.imgur.com/oc7ADNT.png => https://i.imgur.com/6nfZbIg.png
+ With 1 product:
{%- if product.handle == 'product handle' -%}
<style>
/* hide header navigation */
header .nt_navigation{
display: none !important;
}
/* hide breadcrumb */
.breadcrumb_pr_wrap{
display: none !important;
}
/* hide footer */
footer{
display: none !important;
}
</head>
</style>
{%- endif -%}
+ With 2 products:
{%- if product.handle == 'product 1 handle' or product.handle == 'product 2 handle' -%}
<style>
/* hide header navigation */
header .nt_navigation{
display: none !important;
}
/* hide breadcrumb */
.breadcrumb_pr_wrap{
display: none !important;
}
/* hide footer */
footer{
display: none !important;
}
</head>
</style>
{%- endif -%}
Ex: with https://phinetworks.myshopify.com/collections/phigolf-1/products/phigolf-line-friends-edition
=>
product handle: phigolf-line-friends-edition
Code:
{%- if product.handle == 'phigolf-line-friends-edition' -%}
<style>
/* hide header navigation */
header .nt_navigation{
display: none !important;
}
/* hide breadcrumb */
.breadcrumb_pr_wrap{
display: none !important;
}
/* hide footer */
footer{
display: none !important;
}
</head>
</style>
{%- endif -%}
Hope it helps!
User | RANK |
---|---|
33 | |
26 | |
18 | |
9 | |
9 |
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023