2013-04-01 47 views
0

我在我的本地WordPress中做了一個自定義主題。我在文件夾和index.php中添加了一個style.css。我還添加了一個Images文件夾。但是我的主題沒有出現在可用的主題中!可能的解決方法是什麼?請幫助?自制主題沒有出現在Avaliable主題選項

前20行的style.css的:

/* 
Theme Name: test 
Theme URI: http://company_name.com 
Description: The test theme 
Author: sankalp 
Author URI: http://company_name.com 
Version: 1.0 

License: 
License URI: 

General comments (optional). 
*/ 

    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } 
    article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } 
    body { line-height: 1;} 
    ol, ul { list-style: none;} 
    blockquote, q { quotes: none;} 
    blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;} 
+1

複製二十二個主題,並從style.css中更改主題名稱。 檢查是否正在工作.. – oscprofessionals

回答

0

我想你的style.css文件,以及和它是好的。確保你檢查了簡單的事情,例如,打開正確的開發網站

0

對於在WordPress中顯示的主題,您應該上傳主題文件夾/wp-content/themes/。你的主題文件夾應該是這樣的:

/theme-folder/ 
    style.css 
    index.php 

你的style.css中應包括以下行,爲解釋在這裏:http://codex.wordpress.org/Theme_Development#Theme_Stylesheet

/* 
Theme Name: Twenty Ten 
Theme URI: http://wordpress.org/ 
Description: The 2010 default theme for WordPress. 
Author: wordpressdotorg 
Author URI: http://wordpress.org/ 
Version: 1.0 
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional) 

License: 
License URI: 

General comments (optional). 
*/ 

我通常只包括主題名稱,主題URI,作者和作者URI,似乎工作得很好。 :)

如果您確實已將所有主題文件夾上傳到正確的網絡服務器,可能是您沒有上傳您認爲正在上傳的內容?