主题使用不了,我使用的是;简洁空间免费版
首先谢谢WEB主题公园,给我提供了怎么多的资源和教程。让我这样的小白有了学习的地方。
谢谢!!!
我的软件是虚拟机LINUX系统,XAMPP7.1.1 和WordPress4.7.4.
然后就是在WordPress上传主题成功了,实时预览的时候,主题不能使用。出现一大堆代码。代码如下:
Warning: Declaration of check_walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /opt/lampp/htdocs/wordpress/wp-content/themes/simplespace_free/widget.php on line 102
Warning: Declaration of header_menu::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Ar
这是php一段警告信息,实际并不影响使用,是wordpress的菜单函数书写格式对于php较新版本的标准化提示(这个类是wordpress提供的,因此如果完全修复需要wp官方升级这个问题)
你可以取消这个警告的显示
在你的主题文件找到function.php(外观-编辑,找到主题函数function.php )在对顶部<?php 之后另起一行 加入如下代码隐藏这个提示:
error_reporting(E_ALL^E_NOTICE^E_WARNING);
2017年4月25日上午10:10回贴
还是不可以啊,更改了之后,又出现新的问题了。
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; case_index has a deprecated constructor in /opt/lampp/htdocs/wordpress/wp-content/themes/simplespace_free/widget/case.php on line 3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; news_index has a deprecated constructor in /opt/lampp/htdocs/wordpress/wp-content/themes/simplespace_free/widget/news.php on line 3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; html has a deprecated constructor in /opt/lampp/htdocs/wordpress/wp-content/themes/simplespace_free/widget/html.php on line 3
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nav_menu has a deprecated constructor in /opt/lampp/htdocs/wordpress/wp-content/themes/simplespace_free/widget/nav_menu.php on line 3
2017年04月25日下午 12:19回帖
在一样的位置,都是在顶部。
2017年04月25日下午 12:19回帖