2016-04-02 2 views
0

Работает на сайте последние недели. Не было проблем до сегодняшнего дня, когда я загрузил сайт, он сказал, что тема установлена, но неполная, отсутствует таблица стилей. Это изображение отображает мою проблему: http://i.stack.imgur.com/QZoQR.pngStylesheet Missing From Wordpress Theme Bones

Я пошел в style.css на моем севере и не нашел ничего плохого. Вот первые несколько строк файла style.css: http://i.stack.imgur.com/xRB8P.jpg

Кто-нибудь знает, как это решить, поскольку сайт не для меня и должен быть выполнен как можно скорее.

ответ

1

В вашем стиле .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.

0

/* 
 
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 в тематическом корневой каталог, а также