「wordpressレッスンブック」というテキストを見ながらテーマの作成をしています。
しかし style.css が反映されず、cssでは「expected SEMICOLON」というエラーも出る状態です。
対処法を教えてください。よろしくお願いします。
php
1<!DOCTYPE html> 2<html lang="ja"> 3<head> 4 <meta charset="UTF-8"> 5 <title>ページタイトル</title> 6 7 <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri();?>"> 8 9</head> 10 11<body <?php body_class(); ?>> 12 13 <?php if(have_posts()): while(have_posts()): the_post(); ?> 14 15 <article <?php post_class(); ?>> 16 17 <h1><?php the_title();?></h1> 18 19 <?php the_content(); ?> 20 21 </article> 22 23 <?php endwhile; endif; ?> 24 25</body> 26</html>
CSS
1@charset "UTF-8" 2 3/* 4Theme Name : MY THEME 5Author : TRAVEL SKETCH 6Description : This is my original theme. 7Version : 1.0 8*/ 9 10body{margin: 0; 11 font-family: 'メイリオ','Hiragino Kaku Gothic Pro','suns-serif'; 12 line-height: 1.5} 13 14/* 記事 */ 15article h1{margin: 0; 16 font-size: 32px; 17 font-weight: normal}
回答1件
あなたの回答
tips
プレビュー