shopify商店隐藏密码页面上的页脚和商店名称的步骤

shopify新闻
shopify新闻
2022-03-28
点赞icon 0
查看icon 1513

您可在密码页面上隐藏页脚分区。

隐藏密码页面上的页脚

您可在密码页面上隐藏页脚分区。

步骤:

  1. 在 Shofy 后台中,转到在线商店 > 偏好设置。

  2. 滚动到密码保护区域。在给访客的信息中,粘贴以下代码:

<style>footer { display: none; }</style>

您可以将此代码粘贴在任何现有内容的上方或下方。

  1. 点击保存。


在密码页面上隐藏您的商店名称

您可以在密码页面上隐藏您的商店名称。

步骤:

  1. 在 后台中,转到在线商店 > 偏好设置。

  2. 滚动到密码保护区域。在给访客的信息中,粘贴以下代码:

<style>h1 { display: none; }</style>

您可以将此代码粘贴在任何现有内容的上方或下方。

  1. 点击保存。


编辑密码页面的模板代码

如果要进行模板设置中未提供的自定义,则可以编辑密码页面的模板代码。

步骤:

PC:

  1. 在 Shopify 中,转到在线商店 > 模板。

  2. 找到要编辑的模板,然后点击操作 > 编辑代码。

  1. 在 Templates 目录中,点击 password.liquid。

  2. 在 password.liquid 模板中,您将看到一些 Liquid 标签,这些标签中包含构成密码页面的分区。您的模板可能包含以下 Liquid 标签:

    Liquid{% section 'password-header' %} Liquid{% section 'password-content' %} Liquid{% section 'password-footer' %}

  3. 要修改上述任意分区的内容,请在 Sections 目录中点击以下文件之一:

- password-header.liquid - password-content.liquid - password-footer.liquid

  1. 编辑代码以满足您的需求。

  2. 点击保存。

Templates 目录中的 password.liquid 文件通过 {{ content_for_layout }} Liquid 标签包含在您的模板中,该标签位于密码页面布局文件中。要对密码页面布局文件进行任何更改,请点击 Layout 目录中的 password.liquid。

若要了解有关 password.liquid 模板的详细信息,请参阅 password.liquid。

苹果系统:

  1. 在 Shopify 应用中,轻触商店。

  2. 在销售渠道部分中,轻触在线商店。

  3. 轻触 Manage themes(管理模板)。

  4. 找到要编辑的模板,然后点击操作 > 编辑代码。

  1. 在 Templates 目录中,点击 password.liquid。

  2. 在 password.liquid 模板中,您将看到一些 Liquid 标签,这些标签中包含构成密码页面的分区。您的模板可能包含以下 Liquid 标签:

    Liquid{% section 'password-header' %} Liquid{% section 'password-content' %} Liquid{% section 'password-footer' %}

  3. 要修改上述任意分区的内容,请在 Sections 目录中点击以下文件之一:

- password-header.liquid - password-content.liquid - password-footer.liquid

  1. 编辑代码以满足您的需求。

  2. 点击保存。

Templates 目录中的 password.liquid 文件通过 {{ content_for_layout }} Liquid 标签包含在您的模板中,该位于密码页面布局文件中。要对密码页面布局文件进行任何更改,请点击 Layout 目录中的 password.liquid。

若要了解有关 password.liquid 模板的详细信息,请参阅 password.liquid。

安卓系统:

  1. 在 Shopify 应用中,轻触商店。

  2. 在销售渠道部分中,轻触在线商店。

  3. 轻触 Manage themes(管理模板)。

  4. 找到要编辑的模板,然后点击操作 > 编辑代码。

  1. 在 Templates 目录中,点击 password.liquid。

  2. 在 password.liquid 模板中,您将看到一些 Liquid 标签,这些标签中包含构成密码页面的分区。您的模板可能包含以下 Liquid 标签:

    Liquid{% section 'password-header' %} Liquid{% section 'password-content' %} Liquid{% section 'password-footer' %}

  3. 要修改上述任意分区的内容,请在 Sections 目录中点击以下文件之一:

- password-header.liquid - password-content.liquid - password-footer.liquid

  1. 编辑代码以满足您的需求。

  2. 点击保存。

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:

  1. From your Shopify admin, go to Online Store > Preferences.

  2. 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.

  3. Click Save.


Hide your store name on your password page

You can hide your store name on your password .

Steps:

  1. From your Shopify admin, go to Online Store > Preferences.

  2. 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.

  3. 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:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme you want to edit, and then click Actions > Edit code.

  1. In the Templates directory, click password.liquid.

  2. 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' %}
  3. 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

  4. Edit the code to suit your needs.

  5. Click Save.

The password.liquid file in the Templates 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, click password.liquid in the Layout directory.

To learn more about the password.liquid template, refer to password.liquid.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme you want to edit, and then click Actions > Edit code.

  1. In the Templates directory, click password.liquid.

  2. 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' %}
  3. 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

  4. Edit the code to suit your needs.

  5. Click Save.

The password.liquid file in the Templates 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, click password.liquid in the Layout directory.

To learn more about the password.liquid template, refer to password.liquid.



声明:本文系作者独立观点,不代表ESG跨境立场。文中涉及的平台规则、费率及出海政策具有时效性,实际运营请以平台官方最新公布为准。如有版权争议、内容勘误或业务交流,欢迎随时与我们联系。

相关内容

相关文章 最新文章 热门文章 相关搜索 百科 专题

相关文章 更多资讯

最新文章

热门文章

相关搜索

百科

专题

搜索 放大镜
韩国平台交流群热
加入
韩国平台交流群
扫码进群
欧洲多平台交流群热
加入
欧洲多平台交流群
扫码进群
美国卖家交流群
加入
美国卖家交流群
扫码进群
ESG跨境专属福利分享群
加入
ESG跨境专属福利分享群
扫码进群
拉美电商交流群
加入
拉美电商交流群
扫码进群
亚马逊跨境增长交流群
加入
亚马逊跨境增长交流群
扫码进群
亚马逊跨境增长交流群
加入
亚马逊跨境增长交流群
扫码进群
拉美电商交流群
加入
拉美电商交流群
扫码进群
ESG独家招商-PHH GROUP卖家交流群
加入
ESG独家招商-PHH GROUP卖家交流群
扫码进群
6.25CD招商大会
加入
6.25CD招商大会
扫码进群
《2025东南亚跨境出海经营白皮书》
《Fruugo知识百科》
《法国Cdiscount知识百科》
《BOL运营干货包》
《韩国平台运营干货包》
《TikTok美区跨境自运营模式》
《波兰allegro知识百科》
《Darty知识百科》
《法国Fnac知识百科》
《PEAKS 出海经营方法论白皮书》
问答风向榜
查看更多
通过ESG入驻平台,您将解锁
绿色通道,更高的入驻成功率
专业1v1客户经理服务
运营实操指导
运营提效资源福利
平台官方专属优惠

热门标签

联系顾问

平台顾问

平台顾问 平台顾问

微信扫一扫
马上联系在线顾问

icon icon

小程序

微信小程序

ESG跨境小程序
手机入驻更便捷

icon icon

返回顶部