過去幾週一直在網站上工作。直到今天沒有任何問題,當我加載網站它說主題已安裝但不完整,缺少樣式表。這個圖像顯示我的問題:http://i.stack.imgur.com/QZoQR.png樣式表缺少Wordpress主題骨骼
我走進了我的服務器的style.css,找不到任何錯誤。這是style.css文件的前幾行:http://i.stack.imgur.com/xRB8P.jpg
有誰知道解決這個問題,因爲該網站不適合我,需要儘快完成。
過去幾週一直在網站上工作。直到今天沒有任何問題,當我加載網站它說主題已安裝但不完整,缺少樣式表。這個圖像顯示我的問題:http://i.stack.imgur.com/QZoQR.png樣式表缺少Wordpress主題骨骼
我走進了我的服務器的style.css,找不到任何錯誤。這是style.css文件的前幾行:http://i.stack.imgur.com/xRB8P.jpg
有誰知道解決這個問題,因爲該網站不適合我,需要儘快完成。
在您的屏幕截圖它看起來像你的文件名是風格,而不是style.css的
而且,我沒有看到需要到WordPress加載一個主題的信息,看到這裏https://codex.wordpress.org/Theme_Development#Theme_Stylesheet
在你的風格.css你缺少信息WordPress需要加載主題。以下是來自食品的例子:https://codex.wordpress.org/Theme_Development
/*
Theme Name: Twenty Thirteen
Theme URI: http://wordpress.org/themes/twentythirteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
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: twentythirteen
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.
*/
你至少需要有Theme Name
。
/*
Theme Name: Name for your theme
Theme URI: URL you want for your theme
Author: Your name
Author URI: Your URL
Description: Description about your theme like theme for vibe-uk.com etc.
Version: Specify version
*/
在-至少提供以上的style.css文件的信息,這是WordPress的是如何識別主題的名稱和縮略圖顯示上傳的主題根目錄screenshot.png以及