您可在密碼頁(yè)面上隱藏頁(yè)腳分區(qū)。
您可在密碼頁(yè)面上隱藏頁(yè)腳分區(qū)。
在 Shofy 后臺(tái)中,轉(zhuǎn)到在線商店 > 偏好設(shè)置。
滾動(dòng)到密碼保護(hù)區(qū)域。在給訪客的信息中,粘貼以下代碼:
<style>footer { display: none; }</style>
您可以將此代碼粘貼在任何現(xiàn)有內(nèi)容的上方或下方。
點(diǎn)擊保存。
您可以在密碼頁(yè)面上隱藏您的商店名稱(chēng)。
在 后臺(tái)中,轉(zhuǎn)到在線商店 > 偏好設(shè)置。
滾動(dòng)到密碼保護(hù)區(qū)域。在給訪客的信息中,粘貼以下代碼:
<style>h1 { display: none; }</style>
您可以將此代碼粘貼在任何現(xiàn)有內(nèi)容的上方或下方。
點(diǎn)擊保存。
如果要進(jìn)行模板設(shè)置中未提供的自定義,則可以編輯密碼頁(yè)面的模板代碼。
PC:
在 Shopify 中,轉(zhuǎn)到在線商店 > 模板。
找到要編輯的模板,然后點(diǎn)擊操作 > 編輯代碼。
在 Templates
目錄中,點(diǎn)擊 password.liquid
。
在 password.liquid
模板中,您將看到一些 Liquid 標(biāo)簽,這些標(biāo)簽中包含構(gòu)成密碼頁(yè)面的分區(qū)。您的模板可能包含以下 Liquid 標(biāo)簽:
Liquid{% section 'password-header' %}
Liquid{% section 'password-content' %}
Liquid{% section 'password-footer' %}
要修改上述任意分區(qū)的內(nèi)容,請(qǐng)?jiān)?nbsp;Sections
目錄中點(diǎn)擊以下文件之一:
- password-header.liquid
- password-content.liquid
- password-footer.liquid
編輯代碼以滿足您的需求。
點(diǎn)擊保存。
Templates
目錄中的 password.liquid
文件通過(guò) {{ content_for_layout }}
Liquid 標(biāo)簽包含在您的模板中,該標(biāo)簽位于密碼頁(yè)面布局文件中。要對(duì)密碼頁(yè)面布局文件進(jìn)行任何更改,請(qǐng)點(diǎn)擊 Layout
目錄中的 password.liquid
。
若要了解有關(guān) password.liquid
模板的詳細(xì)信息,請(qǐng)參閱 password.liquid。
蘋(píng)果系統(tǒng):
在 Shopify 應(yīng)用中,輕觸商店。
在銷(xiāo)售渠道部分中,輕觸在線商店。
輕觸 Manage themes(管理模板)。
找到要編輯的模板,然后點(diǎn)擊操作 > 編輯代碼。
在 Templates
目錄中,點(diǎn)擊 password.liquid
。
在 password.liquid
模板中,您將看到一些 Liquid 標(biāo)簽,這些標(biāo)簽中包含構(gòu)成密碼頁(yè)面的分區(qū)。您的模板可能包含以下 Liquid 標(biāo)簽:
Liquid{% section 'password-header' %}
Liquid{% section 'password-content' %}
Liquid{% section 'password-footer' %}
要修改上述任意分區(qū)的內(nèi)容,請(qǐng)?jiān)?nbsp;Sections
目錄中點(diǎn)擊以下文件之一:
- password-header.liquid
- password-content.liquid
- password-footer.liquid
編輯代碼以滿足您的需求。
點(diǎn)擊保存。
Templates
目錄中的 password.liquid
文件通過(guò) {{ content_for_layout }}
Liquid 標(biāo)簽包含在您的模板中,該位于密碼頁(yè)面布局文件中。要對(duì)密碼頁(yè)面布局文件進(jìn)行任何更改,請(qǐng)點(diǎn)擊 Layout
目錄中的 password.liquid
。
若要了解有關(guān) password.liquid
模板的詳細(xì)信息,請(qǐng)參閱 password.liquid。
安卓系統(tǒng):
在 Shopify 應(yīng)用中,輕觸商店。
在銷(xiāo)售渠道部分中,輕觸在線商店。
輕觸 Manage themes(管理模板)。
找到要編輯的模板,然后點(diǎn)擊操作 > 編輯代碼。
在 Templates
目錄中,點(diǎn)擊 password.liquid
。
在 password.liquid
模板中,您將看到一些 Liquid 標(biāo)簽,這些標(biāo)簽中包含構(gòu)成密碼頁(yè)面的分區(qū)。您的模板可能包含以下 Liquid 標(biāo)簽:
Liquid{% section 'password-header' %}
Liquid{% section 'password-content' %}
Liquid{% section 'password-footer' %}
要修改上述任意分區(qū)的內(nèi)容,請(qǐng)?jiān)?nbsp;Sections
目錄中點(diǎn)擊以下文件之一:
- password-header.liquid
- password-content.liquid
- password-footer.liquid
編輯代碼以滿足您的需求。
點(diǎn)擊保存。
Templates
目錄中的 password.liquid
文件通過(guò) {{ content_for_layout }}
Liquid 標(biāo)簽包含在您的模板中,該標(biāo)簽位于密碼頁(yè)面布局文件中。要對(duì)密碼頁(yè)面布局文件進(jìn)行任何更改,請(qǐng)點(diǎn)擊 Layout
目錄中的 password.liquid
。
若要了解有關(guān) password.liquid
模板的詳細(xì)信息,請(qǐng)參閱 password.liquid。
Hide the footer on your password page
You can hide the footer section on your password page.
Steps:
From your Shopify admin, go to Online Store > Preferences.
Scroll to the Password protection area. In Message for your visitors, paste the following code:
<style>footer { display: none; }</style>You can paste this code either above or below any existing content.
Click Save.
Hide your store name on your password page
You can hide your store name on your password .
Steps:
From your Shopify admin, go to Online Store > Preferences.
Scroll to the Password protection area. In Message for your visitors, paste the following code:
<style>h1 { display: none; }</style>You can paste this code either above or below any existing content.
Click Save.
Edit the theme code for your password page
If you want to make customizations that are not available in the theme settings, then you can edit the theme code for the password page.
Steps:
PC:
From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, and then click Actions > Edit code.
In the
Templates
directory, clickpassword.liquid
.In the
password.liquid
template, you will see Liquid tags that include the sections that make up the password page. Your theme might include the following Liquid tags:{% section 'password-header' %}{% section 'password-content' %}{% section 'password-footer' %}To modify the content of any of the above sections, in the
Sections
directory, click one of the following files:
password-header.liquid
password-content.liquid
password-footer.liquid
Edit the code to suit your needs.
Click Save.
The
password.liquid
file in theTemplates
directory is included in your theme by the{{ content_for_layout }}
Liquid tag, which is found in the password page layout file. To make any changes to the password page layout file, clickpassword.liquid
in theLayout
directory.To learn more about the
password.liquid
template, refer to password.liquid.iPhone:
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
Find the theme you want to edit, and then click Actions > Edit code.
In the
Templates
directory, clickpassword.liquid
.In the
password.liquid
template, you will see Liquid tags that include the sections that make up the password page. Your theme might include the following Liquid tags:{% section 'password-header' %}{% section 'password-content' %}{% section 'password-footer' %}To modify the content of any of the above sections, in the
Sections
directory, click one of the following files:
password-header.liquid
password-content.liquid
password-footer.liquid
Edit the code to suit your needs.
Click Save.
The
password.liquid
file in theTemplates
directory is included in your theme by the{{ content_for_layout }}
Liquid tag, which is found in the password page layout file. To make any changes to the password page layout file, clickpassword.liquid
in theLayout
directory.To learn more about the
password.liquid
template, refer to password.liquid.
特別聲明:以上文章內(nèi)容僅代表作者本人觀點(diǎn),不代表ESG跨境電商觀點(diǎn)或立場(chǎng)。如有關(guān)于作品內(nèi)容、版權(quán)或其它問(wèn)題請(qǐng)于作品發(fā)表后的30日內(nèi)與ESG跨境電商聯(lián)系。
二維碼加載中...
使用微信掃一掃登錄
使用賬號(hào)密碼登錄
平臺(tái)顧問(wèn)
微信掃一掃
馬上聯(lián)系在線顧問(wèn)
小程序
ESG跨境小程序
手機(jī)入駐更便捷
返回頂部