Custom Theme: The active theme is broken. Reverting to the default theme

I'm making my own theme and I just got this message while trying to activate my theme: "The active theme is br

I'm making my own theme and I just got this message while trying to activate my theme: "The active theme is broken. Reverting to the default theme." Live preview works, but when I select this theme it reverts back to a new theme. I have index.php and my style.css files set up as I was using this theme fine before. I've disabled all plugins and even tried a fresh copy of wordpress.

Is there any way to troubleshoot this issue and see what in my theme is breaking?

I'm making my own theme and I just got this message while trying to activate my theme: "The active theme is broken. Reverting to the default theme." Live preview works, but when I select this theme it reverts back to a new theme. I have index.php and my style.css files set up as I was using this theme fine before. I've disabled all plugins and even tried a fresh copy of wordpress.

Is there any way to troubleshoot this issue and see what in my theme is breaking?

Share Improve this question asked Jul 30, 2018 at 0:50 joshjosh 311 silver badge2 bronze badges 3
  • Check the style.css -> developer.wordpress/themes/basics/main-stylesheet-style-css – user145078 Commented Jul 30, 2018 at 1:01
  • 1 The comment at the top of style.css is not optional, and some of the components of it are required, without seeing the top of your style.css it's not possible to tell – Tom J Nowell Commented Jul 30, 2018 at 4:16
  • I have the same problem, but I am not even able to see the style.css sheet – Deya Commented Jul 24, 2019 at 10:10
Add a comment  | 

1 Answer 1

Reset to default 1

You need to add some compulsary code in top of the style.css file

just copy and paste this commented code you can change theme name as per your requirement.

https://developer.wordpress/themes/basics/main-stylesheet-style-css/#example

/*
Theme Name: Twenty Seventeen

Theme URI: https://wordpress/themes/twentyseventeen/

Author: the WordPress team

Author URI: https://wordpress/

Description: Twenty Seventeen 

Version: 1.0

License: GNU General Public License v2 or later

License URI: http://www.gnu/licenses/gpl-2.0.html

Text Domain: twentyseventeen

Tags: one-column, two-columns

*/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745299589a4621354.html

相关推荐

  • Custom Theme: The active theme is broken. Reverting to the default theme

    I'm making my own theme and I just got this message while trying to activate my theme: "The active theme is br

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信