您在這裡

請問 Sub theme 的 color

dennys's 的頭像
dennys 在 2009-03-21 (週六) 19:33 發表

我的作法是這樣的

  • 建立一個 themes/garland/test1 的子目錄
  • 把 minnelli 的 minnelli.info 和 minnelli.css 拷貝過來產生 test1.info 和 test1.css, 兩個檔案都只修改 id, 內容都沒變.
  • 把 themes/garland/color 的複製到 themes/garland/test1/color

然後問題就出現了, 基本上這個 sub theme 是可以用的, 但是發現兩個問題
1. 我改了 sub theme 的 color, 在存檔時看到下列錯誤訊息:
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

2. 他會建立一個這樣子的目錄 sites/example.com/files/color/test1-*****, 我發現和 minnelli 比較, 他少了 style.css 和 style-rtl.css 兩個檔案
3. 雖然存檔成功, 但顏色還是沒有變化.

後來我發現我刪掉 themes/garland/test1/color, 然後重新從 themes/garland/minnelli/color 再複製一份就可以了?