0

Ive made a plugin to import the header from my wp site to the vb forums header so that the user has one common header to the site. The error on calling the plugin in my header template in vb forums is

Fatal error: Call to undefined function language_attributes() in /home/alhussai/public_html/wp-content/themes/Karma/header.php on line 2

Any idea how I can fix this?

4

1 回答 1

0

我不是 100% 确定,但一些 WordPress 标头模板具有动态语言属性。它在 header.php 文件中应该看起来像这样,非常接近页面顶部:

<html <?php language_attributes(); ?>>

你可以把它改成这样:

<html lang="en">
于 2012-07-26T15:52:55.047 回答