Template Dropdown not showing up within Wordpress administrator page

后端 未结 22 1244
清歌不尽
清歌不尽 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条回答
  •  渐次进展
    2021-02-01 18:31

    Jack Nicholson was right! You need to make sure your style.css contains the full comment. Example below:

    Previously mine was:

    /*
    Theme Name: Acadata
    Theme URI: https://www.factorypattern.co.uk
    Description: Custom
    Author: Factory Pattern
    Version: 1
    License: GNU General Public License
    License URI: license.txt
    */
    

    Then I changed it to the below and now I can see all my templates.

    /*
    Theme Name: Acadata
    Theme URI: https://factorypattern.co.uk/
    Description: Custom
    Author: Factory Pattern
    Author URI: https://factorypattern.co.uk/
    Description: The Acadata theme for WordPress.
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
    Text Domain: acadata
    
    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
    */
    

提交回复
热议问题