您可在密码页面上隐藏页脚分区。
您可在密码页面上隐藏页脚分区。
在 Shofy 后台中,转到在线商店 > 偏好设置。
滚动到密码保护区域。在给访客的信息中,粘贴以下代码:
<style>footer { display: none; }</style>您可以将此代码粘贴在任何现有内容的上方或下方。
点击保存。
您可以在密码页面上隐藏您的商店名称。
在 后台中,转到在线商店 > 偏好设置。
滚动到密码保护区域。在给访客的信息中,粘贴以下代码:
<style>h1 { display: none; }</style>您可以将此代码粘贴在任何现有内容的上方或下方。
点击保存。
如果要进行模板设置中未提供的自定义,则可以编辑密码页面的模板代码。
PC:
在 Shopify 中,转到在线商店 > 模板。
找到要编辑的模板,然后点击操作 > 编辑代码。
在 Templates 目录中,点击 password.liquid。
在 password.liquid 模板中,您将看到一些 Liquid 标签,这些标签中包含构成密码页面的分区。您的模板可能包含以下 Liquid 标签:
Liquid{% section 'password-header' %} Liquid{% section 'password-content' %} Liquid{% section 'password-footer' %}
要修改上述任意分区的内容,请在 Sections 目录中点击以下文件之一:
- password-header.liquid - password-content.liquid - password-footer.liquid
编辑代码以满足您的需求。
点击保存。
Templates 目录中的 password.liquid 文件通过 {{ content_for_layout }} Liquid 标签包含在您的模板中,该标签位于密码页面布局文件中。要对密码页面布局文件进行任何更改,请点击 Layout 目录中的 password.liquid。
若要了解有关 password.liquid 模板的详细信息,请参阅 password.liquid。
苹果系统:
在 Shopify 应用中,轻触商店。
在销售渠道部分中,轻触在线商店。
轻触 Manage themes(管理模板)。
找到要编辑的模板,然后点击操作 > 编辑代码。
在 Templates 目录中,点击 password.liquid。
在 password.liquid 模板中,您将看到一些 Liquid 标签,这些标签中包含构成密码页面的分区。您的模板可能包含以下 Liquid 标签:
Liquid{% section 'password-header' %} Liquid{% section 'password-content' %} Liquid{% section 'password-footer' %}
要修改上述任意分区的内容,请在 Sections 目录中点击以下文件之一:
- password-header.liquid - password-content.liquid - password-footer.liquid
编辑代码以满足您的需求。
点击保存。
Templates 目录中的 password.liquid 文件通过 {{ content_for_layout }} Liquid 标签包含在您的模板中,该位于密码页面布局文件中。要对密码页面布局文件进行任何更改,请点击 Layout 目录中的 password.liquid。
若要了解有关 password.liquid 模板的详细信息,请参阅 password.liquid。
安卓系统:
在 Shopify 应用中,轻触商店。
在销售渠道部分中,轻触在线商店。
轻触 Manage themes(管理模板)。
找到要编辑的模板,然后点击操作 > 编辑代码。
在 Templates 目录中,点击 password.liquid。
在 password.liquid 模板中,您将看到一些 Liquid 标签,这些标签中包含构成密码页面的分区。您的模板可能包含以下 Liquid 标签:
Liquid{% section 'password-header' %} Liquid{% section 'password-content' %} Liquid{% section 'password-footer' %}
要修改上述任意分区的内容,请在 Sections 目录中点击以下文件之一:
- password-header.liquid - password-content.liquid - password-footer.liquid
编辑代码以满足您的需求。
点击保存。
Templates 目录中的 password.liquid 文件通过 {{ content_for_layout }} Liquid 标签包含在您的模板中,该标签位于密码页面布局文件中。要对密码页面布局文件进行任何更改,请点击 Layout 目录中的 password.liquid。
若要了解有关 password.liquid 模板的详细信息,请参阅 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
Templatesdirectory, clickpassword.liquid.In the
password.liquidtemplate, 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
Sectionsdirectory, click one of the following files:
password-header.liquid
password-content.liquid
password-footer.liquidEdit the code to suit your needs.
Click Save.
The
password.liquidfile in theTemplatesdirectory 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.liquidin theLayoutdirectory.To learn more about the
password.liquidtemplate, 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
Templatesdirectory, clickpassword.liquid.In the
password.liquidtemplate, 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
Sectionsdirectory, click one of the following files:
password-header.liquid
password-content.liquid
password-footer.liquidEdit the code to suit your needs.
Click Save.
The
password.liquidfile in theTemplatesdirectory 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.liquidin theLayoutdirectory.To learn more about the
password.liquidtemplate, refer to password.liquid.
特别声明:以上文章内容仅代表作者本人观点,不代表ESG跨境电商观点或立场。如有关于作品内容、版权或其它问题请于作品发表后的30日内与ESG跨境电商联系。
二维码加载中...
使用微信扫一扫登录
使用账号密码登录
平台顾问
微信扫一扫
马上联系在线顾问
小程序
ESG跨境小程序
手机入驻更便捷
返回顶部