我的主题临界错误是wp debug true,请看该错误有人解决了吗谢谢
错误
致命错误:未捕获错误:调用/home/onehostscp/public_html/primus/dizajn/wp-content/themes/twofold-wp/header.php中未定义的函数thb_overflow_class():1堆栈跟踪:#0 / home /onehostscp/public_html/primus/dizajn/wp-includes/template.php(722):require_once()#1 /home/onehostscp/public_html/primus/dizajn/wp-includes/template.php(671):load_template(' / home / onehostsc ...',true)#2 /home/onehostscp/public_html/primus/dizajn/wp-includes/general-template.php(41):locate_template(Array,true)#3 / home / onehostscp / public_html / primus / dizajn / wp-content / themes / twofold-wp / index.php(1):get_header()#4 /home/onehostscp/public_html/primus/dizajn/wp-includes/template-loader.php(98 ):include('/ home / onehostsc ...')#5 /home/onehostscp/public_html/primus/dizajn/wp-blog-header.php(19):require_once('/ home / onehostsc ...') #6 /home/onehostscp/public_html/primus/dizajn/index.php(17):require('/ home / onehostsc ...')#7 {main}放在/ home / onehostscp / public_html / primus / dizajn / wp-content /主题/两个第1行上的fold-wp / header.php 您的网站上存在严重错误。
Header.php代码:
<?php $html_class[] = thb_overflow_class(); ?>
<!doctype html>
<html <?php language_attributes(); ?> class="<?php echo esc_attr(implode(' ', $html_class)); ?>")>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_site_icon(); ?>
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
</head>
<body <?php body_class(); ?> data-lightbox-effect="<?php echo ot_get_option('lightbox_effect', 'slide'); ?>">
<div class="pace"></div>
<?php do_action( 'thb_side_cart' ); ?>
<?php get_template_part( 'inc/templates/header/header-style1-'.ot_get_option('menu_position', 'thb-menu-left').'' ); ?>
<?php get_template_part( 'inc/templates/navigation-menu' ); ?>
<?php if (is_singular('post') || is_singular('album')) { do_action('thb_article_nav'); }?>
<div id="wrapper">