Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/241.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在Wordpress上设置自定义静态页面返回404/样式表不会显示_Php_Html_Wordpress - Fatal编程技术网

Php 在Wordpress上设置自定义静态页面返回404/样式表不会显示

Php 在Wordpress上设置自定义静态页面返回404/样式表不会显示,php,html,wordpress,Php,Html,Wordpress,我已经将我的开发工作站从Mamp移动到Xammp,并在其中设置了Wordpress站点和主题,但当我更改阅读设置,将主页设置为自定义静态页面,而不是显示最新帖子时,它会在Chrome/Firefox中将该站点返回为404,表示找不到该网页。除此之外,my style.less没有出现,但所有我的网站内容/图像都会随着php echo的返回而出现 我如何解决这个问题?我浏览了谷歌的所有网页,但似乎都不知道自己做错了什么 谢谢 下面是我的Header.php文件的样子 <?php?&

我已经将我的开发工作站从Mamp移动到Xammp,并在其中设置了Wordpress站点和主题,但当我更改阅读设置,将主页设置为自定义静态页面,而不是显示最新帖子时,它会在Chrome/Firefox中将该站点返回为404,表示找不到该网页。除此之外,my style.less没有出现,但所有我的网站内容/图像都会随着php echo的返回而出现

我如何解决这个问题?我浏览了谷歌的所有网页,但似乎都不知道自己做错了什么

谢谢

下面是我的Header.php文件的样子

     <?php?>
     <!DOCTYPE html>
     <html lang="en">
     <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>

                      ノಠ益ಠ)ノ up, down, left, right
<head>
<title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>
    <meta charset="UTF-8">
    <meta name="google-site-verification" content=""/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="author" content="">
    <meta name="description" content="The portfolio of">
    <meta name="viewport" content="width=device-width, initial-scale = 1">

    <link rel="author" href="//plus.google.com/112117177196873777330/posts"/>
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="stylesheet/less" href="/wordpress/wp-content/themes/newtheme/style.less" media="screen"/>
    <link type="text/plain" rel="author" href="/humans.txt" />

    <script src="/wordpress/wp-content/themes/newtheme/assets/js/less.js" type="text/javascript"></script>
   </head>

恢复到WP默认主题,并告诉我它是否加载了您的站点?请确保您的常规设置中的URL是正确的。这不是LESS的经验,但我认为您的LESS样式表必须在您的LESS.js之后调用,对吗?编辑:对不起,我应该做我的研究,你做得对。也许你的目录有问题更合理,因为你已经从MAMP切换到XAMPP。例如,尝试使用href=/style.less,你的JS文件也是如此。我在你的href后面看到了一个额外的引号?你也为你的less.js这样做了吗?试着在你的浏览器中查看页面的源代码,然后在标题中找到你的less.js的链接,它找到文件了吗?