WordPress和StackExchange是新手,请原谅我的礼节不好。我正在为一门课制作一个自定义的WordPress主题,在这条线上的某个地方出现了一个我和我的教授都找不到的小错误,但这特别导致我的整个CSS页面无法加载。通过故障排除,我们发现这可能是中的某个问题。php文件。有人看到任何可能导致如此巨大问题的东西吗?我很遗憾如此笨拙地请求帮助,但我们被难住了!
index.html
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content1">
<article>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
<?php endwhile; ?>
<?php endif; ?>
</article>
</div>
<?php get_footer(); ?>
---
header.php
<html>
<head>
<title> Portfolio</title>
<!-- <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap" rel="stylesheet">
<meta name="description" content="Our first page">
<meta name="keywords" content="html tutorial template"> -->
<link href="style.css" rel="stylesheet">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
footer.php, 没有什么特别重要的<footer></footer>
</div> <!-- close wrapper -->
<?php wp_footer(); ?>
</body>
</html>