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

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

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

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

隐藏密码页面上的页脚

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

步骤:

  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跨境电商观点或立场。如有关于作品内容、版权或其它问题请于作品发表后的30日内与ESG跨境电商联系。

搜索 放大镜
韩国平台交流群
加入
韩国平台交流群
扫码进群
欧洲多平台交流群
加入
欧洲多平台交流群
扫码进群
美国卖家交流群
加入
美国卖家交流群
扫码进群
ESG跨境专属福利分享群
加入
ESG跨境专属福利分享群
扫码进群
拉美电商交流群
加入
拉美电商交流群
扫码进群
亚马逊跨境增长交流群
加入
亚马逊跨境增长交流群
扫码进群
《开店大全-全球合集》
《开店大全-主流平台篇》
《开店大全-东南亚篇》
《CD平台自注册指南》
《开店大全-俄罗斯篇》
《韩国站内推广指南》
《韩国热销品预测》
《开店大全-日韩篇》
《开店大全-拉美篇》
《开店大全-欧洲篇》
通过ESG入驻平台,您将解锁
绿色通道,更高的入驻成功率
专业1v1客户经理服务
运营实操指导
运营提效资源福利
平台官方专属优惠
联系顾问

平台顾问

平台顾问 平台顾问

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

icon icon

小程序

微信小程序

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

icon icon

返回顶部