You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Shopify自定义主题开发:何处添加主题名称、创作者及版本信息?

Hey there! Great question—this is all managed through your theme's core configuration file, no need to dig into template code. Here's the step-by-step breakdown:

  1. Locate or create the theme.toml file
    This file lives in the root directory of your Shopify theme. If it doesn't exist yet, just make a new plain text file named theme.toml in your theme's main folder.

  2. Add the required configuration properties
    Inside the theme.toml file, define these key values to populate the footer info in the Customize editor:

    • name: Your theme's public display name (matches "DEBUT" in your example)
    • version: Your theme's version number (e.g., "1.0.0" or "2.3.1")
    • authors: The creator/support attribution (you can add one or multiple authors here)

    Here's a working example to copy:

    name = "My Custom Shopify Theme"
    version = "1.0.0"
    
    [authors]
      [[authors]]
        name = "Your Name or Agency"
    
  3. Upload and test
    Save the file, upload your theme to Shopify, then head to the Customize editor. Scroll all the way to the bottom of the left sidebar—you'll see your theme name, version, and author info displayed exactly like the Debut theme does.

Bonus tip: If you want to link to your website, you can add a url field under the author entry, like this:

[[authors]]
  name = "Your Agency"
  url = "https://youragency.com"

Shopify will automatically turn the author name into a clickable link in the Customize footer.

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

火山引擎 最新活动