Template Dropdown not showing up within Wordpress administrator page

后端 未结 22 1290
清歌不尽
清歌不尽 2021-02-01 17:49

I am working on a Wordpress-based project, and I just added a new template to the installation by uploading a template file. I was creating a new page that will use my new templ

22条回答
  •  萌比男神i
    2021-02-01 18:46

    I've had this problem for two days. This forum and a couple of tests later did the work. Here is what was missing for my part.


    Be sure that there is a style.css in your theme folder.

    The style.css must have a valid comment section at the top of the file. This means at least this:

    /*!
    Template: your-theme
    */
    

    If you're using SASS or LESS, make sure that you have a "!" just after declaring your comment. It's to prevent SASS or LESS to delete your comment section.

    To be sure that everything is settled fine. You may go to "Appearance > Themes". After the listing of themes, if there is nothing, than everything should be fine. Otherwise, it'll be written "Broken Themes" and you'll still have some issues to solve.

提交回复
热议问题