theme development – Syntax error potentially causing CSS catastrophic failure

Question

brand new to WordPress and StackExchange so excuse my poor etiquette. I am making a custom WordPress theme for a class, and somewhere along the line made an error so tiny neither me nor my professor could find it, but it’s specifically caused my entire CSS page to not load whatsoever. Through troubleshooting, we figured out it’s probably an issue somewhere in the .php files. Does anybody see anything that could be causing such a huge problem? I regret asking so cluelessly for help, but we’re stumped!

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, which doesn’t have anything especially important

<footer></footer>
</div> <!-- close wrapper -->
<?php wp_footer(); ?>
</body>
</html>

0
Samantha Banaszak 1 month 2021-11-01T14:20:51-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse