我正在使用名为Pakoutfit.com的店面主题来制作wordpress商店。
我尝试使用My Custom Functions插件编辑其页脚凭据,并使用此插件运行以下代码,
add-action( 'init' , 'custom_remove_footer_credit' , 10 );
function custom_remove_footer_credit(){
remove_action( 'storefront_footer' , 'storefront_credit' , 20 );
add_action( 'storefront_footer' , 'custom_storefront_credit' , 20 );
}
function custom_storefront_credit(){
?>
<div class="site-info">
© PakOutfit <?php echo get_the_date( 'Y' ); ?>
</div>
<?php
}
我遵循此youtube tutorial,
现在,当我尝试打开我的网站甚至是其wp-admin面板时,它说,
此页面无效 pakoutfit.com当前无法处理此请求。 HTTP错误500
我不知道我的自定义功能插件会在哪个文件中进行更改,以便我可以将其撤消。
我正在使用Godaddy域名和托管。
我是这个领域的新手。请帮助我重新启用我的网站。谢谢
答案 0 :(得分:1)
应通过WordPress子主题对网站进行修改。不要编辑核心主题文件:https://codex.wordpress.org/Child_Themes
使用FTP或cPanel登录名,找到进行更改的文件并将其删除。那将恢复您的站点。
一旦您安装并激活了子主题,并且您的功能进入了子主题 functions.php 文件。
请务必更改以下内容:
add-action
对此:
add_action