Shopify Liquid的自定义部分标题

发布于 2025-02-13 15:10:32 字数 570 浏览 1 评论 0原文

我想在我的Shopify网站上创建简单的自定义液体部分标题。我正在使用下面的代码,其中有一部分工作,但是我不确定如何进行进一步的更改...

  • 上方(不下面)
  • 少填充
  • 自定义文本链接

某些视觉提示

<h2 class="rich-text__title text-block__item text-block__heading type-heading-1" style="border-top: 1px; margin-top:0px;" >
        RECENTLY ADDED
      </h2>

I'm wanting to create simple custom liquid section headings on my shopify site. I'm using the code below which does part of the job, but I'm unsure how to make further changes...

  • Border above (not below)
  • Less padding
  • Custom text link

Some visual cues

<h2 class="rich-text__title text-block__item text-block__heading type-heading-1" style="border-top: 1px; margin-top:0px;" >
        RECENTLY ADDED
      </h2>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静若繁花 2025-02-20 15:10:32

也许您可以尝试一下...

.border-top {
  border-top: 1px solid red;
}
<div class="border-top">
  <h2 class="rich-text__title text-block__item text-block__heading type-heading-1">RECENTLY ADDED</h2>
  <a href="#">Shop All</a>
</div>

Maybe you can try this...

.border-top {
  border-top: 1px solid red;
}
<div class="border-top">
  <h2 class="rich-text__title text-block__item text-block__heading type-heading-1">RECENTLY ADDED</h2>
  <a href="#">Shop All</a>
</div>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文