You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在博客中删除指定的title-box Div区块?

How to Find and Remove the Unnecessary Title Box in Your Shopify Blog Theme

Hey there! Let's track down that extra <div class="title-box"> you want to remove permanently from your blog posts. You already confirmed removing it via browser dev tools works great—now let's find where it lives in your Liquid theme files:

  • Start with blog-specific templates
    Head to your Shopify admin > Online Store > Themes > Actions > Edit Code. First check files like article.liquid (for individual blog posts) or blog.liquid (for the blog listing page). These are the most likely places for post-specific header elements.

  • Check section files
    Many modern Shopify themes split page structures into sections. Look for files named article-template.liquid or blog-template.liquid under the Sections folder. These often hold the core layout for your blog content.

  • Use the search function (fastest way!)
    In the Edit Code interface, use the top-right search bar to look for keywords from the code block:

    • Search for title-box (the class name of the div)
    • Or search for title-under (the class on the h1 tag)
      This will instantly show you all files that contain these strings, so you don't have to hunt through every file manually.
  • Check snippet files
    Some themes reuse header elements across pages in snippets. Look for files like page-header.liquid, blog-header.liquid, or header-section.liquid under the Snippets folder—this is where reusable UI components often live.

  • Double-check layout files (last resort)
    If you still can't find it, take a quick look at theme.liquid under the Layout folder. This is the global template for your site, but it's less likely to hold a blog-specific title box unless all pages use the same header structure.

Once you locate the file with the code block:

<div class="title-box"> <h1 class="text-center text-uppercase title-under">BLOG</h1> </div>

Delete that exact snippet, save your changes, and preview your blog post to confirm the unwanted space is gone. Pro tip: Copy the original code to a text file first as a backup, just in case you need to restore it later!

内容的提问来源于stack exchange,提问作者asirris

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 07:13:16