Support » 佈景主題與模板 » 換主題 導致Fatal error , 全blog都打不開

  • 我用了個叫’skymag’的主題 , 便甚麼都見不了
    卻出現了 Fatal error: Call to undefined function add_theme_support() in /home/我的網址/blog/wp-content/themes/skymag/includes/images.php on line 22 (連主頁也是這行字)

    所謂的line 22 , 是不是如下 :
    /* Adds theme support for post images. */
    add_theme_support( ‘post-thumbnails’ );

    /**
    * This is a highly intuitive function that gets images. It first calls for custom field keys. If no
    * custom field key is set, check for the_post_thumbnail(). If no post image, check for images
    * attached to post. Check for image order if looking for attached images. Scan the post for
    * images if $image_scan = true. Check for default image if $default_image = true. If an image
    * is found, call display_the_image() to format it.
    *
    * @since 0.1
    * @global $post The current post’s DB object.
    * @param array $args Parameters for what image to get.
    * @return string|array The HTML for the image. | Image attributes in an array.
    */

    但是不明白所指

    *不能用那theme便算 , **可以教我在甚麼地方, 怎樣改為用其他主題(如default或mistylook都可) , ***以恢復原blog (已有百多篇)

正在檢視 3 則回覆 - 1 至 3 (共計 3 則)
  • Moderator Kirin Lin

    (@kirin_lin)

    使用 FTP 將 skymag 這個目錄刪除,即可恢復預設主題。

    我也有相同情況(但是在line 83),依Kirin Lin的指示刪掉佈景主題的目錄後,出現的錯誤訊息變成”Parse error: syntax error, unexpected T_STRING in /raid/vhost/ralin.url.tw/www/wp-config.php on line 83″。不知如何是好,請大大指示。

    @ralin55: 要不要檢查一下你的 wp-config.php,裡頭可能有語法錯誤喔…

正在檢視 3 則回覆 - 1 至 3 (共計 3 則)
  • The topic ‘換主題 導致Fatal error , 全blog都打不開’ is closed to new replies.