Skip to main content

定制徽标

¥Customizing the logo

默认 Strapi 徽标显示在 Strapi 应用的主导航和身份验证页面中,可以从

¥The default Strapi logos, displayed in the main navigation of a Strapi application and the authentication pages, can be modified from

Settings icon

设置 > 全局设置 > 概述。

¥Settings > Global settings > Overview.

✏️ 注意

这两个徽标也可以通过 Strapi 应用的配置文件以编程方式进行自定义(请参阅 开发者文档)。但是,通过管理面板上传的徽标将取代通过配置文件设置的任何徽标。

¥Both logos can also be customized programmatically via the Strapi application's configuration files (see Developer Documentation). However, the logos uploaded via the admin panel supersedes any logo set through the configuration files.

Custom logo settingsCustom logo settings

自定义徽标:

¥To customize the logos:

  1. 转至设置界面的全局设置 > 概述子部分。

    ¥Go to the Global settings > Overview sub-section of the settings interface.

  2. 点击上传区域。

    ¥Click on the upload area.

  3. 通过浏览文件、将文件拖放到右侧区域或使用 URL 来上传你选择的徽标。徽标不应超过 750x750 像素。

    ¥Upload your chosen logo, either by browsing files, drag & dropping the file in the right area, or by using a URL. The logo shouldn't be more than 750x750px.

  4. 单击上传窗口中的上传徽标按钮。

    ¥Click on the Upload logo button in the upload window.

  5. 单击右上角的“保存”按钮。

    ¥Click on the Save button in the top right corner.

💡 提示

上传后,新徽标可以替换为另一个徽标

¥Once uploaded, the new logo can be replaced with another one

Add icon

,或重置

¥, or reset

Reset icon

使用默认的 Strapi 徽标或配置文件中设置的徽标。

¥with the default Strapi logo or the logo set in the configuration files.