在免费的wordpress主题中对section进行重新排序

每当我尝试将此代码放在子主题中时, 它总是会给我这个错误。回滚错误(?)


#1


你需要使父主题中的功能可插入。

<?php
if ( ! function_exists ( 'my_function' ) ) {
function my_function() {
    // Contents of your function here.
}
}
?>

这样, 如果子代中存在相同的功能, 则将其跳过。但是, 如果你根本不想更改父主题, 则还有其他选项。请让我知道, 我将发布它们, 但是此选项是清单。

来源:

https://www.srcmini02.com/65765.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37220.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?