• 孙锡源
    管理员

    你是否成功创建了子主题?按开发规范,你应该在子主题的 style.css 文件头部包含 Template 字段来标识父主题,例如:

    /*
    Theme Name:     Twenty Twelve Child
    Theme URI:      http://example.com/
    Description:    Child theme for the Twenty Twelve theme
    Author:         Your name here
    Author URI:     http://example.com/about/
    Template:       twentytwelve
    Version:        0.1.0
    */

    成功关联父主题后子主题中的文件应当能自动替换父主题的对应文件。

    关于子主题的更详细信息可以参考官方手册:

     https://developer.wordpress.org/themes/advanced-topics/child-themes/ 

    如果还有问题可以回帖继续交流。

  • 正在查看 1 条回复
    • 哎呀,回复话题必需登录。

    加入 LitePress 论坛 ,参与知识分享与交流
    登录 注册 进行评论
    立即加入