wordpressでオリジナルテーマを作りインストールしたんですが、画面が真っ白になっしまいます。
これまでに行ったことは以下の通りです。
(1)
wp-config.phpのdefine('WP_DEBUG', fasle);をdefine('WP_DEBUG', true);にしてもエラーの表示が出てこないです。
(2)
chromeのディベロッパーツールで表示を確認したところ、header.phpの中のh1タグのロゴのところにエラーが表示されています。
これ以後がソースがない状況です。(上記ソースで途切れいています。)
ここが原因でしょうか。
すみません、ご教示ください。
header.phpのコードを追記します。
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"> <meta property="og:title" content=""> <meta property="og:url" content=""> <meta property="og:image" content="img/"> <meta property="og:description" content=""> <title><?php bloginfo('name'); ?></title> <link rel="stylesheet" href="<?php echo get_template_directory_url(); ?>/css/cssreset-min.css"> <link rel="stylesheet" href="<?php echo get_template_directory_url(); ?>/style.css"> <link rel="shortcut icon" href="img/favicon.ico"> <link rel="apple-touch-icon" href="img/favicon.ico"> <link href="https://fonts.googleapis.com/css?family=Cambay:400,700" rel="stylesheet"> <?php wp_head(); ?> </head> <body> <div id="container"> <header> <div class="header_logo"> <h1><a href="<?php echo home_url(); ?>"><img src="<?php get_template_directory_url(); ?>/img/logo_exhibition.png" alt="展示会情報calotypephotoweb"></a></h1> </div> <div class="nav-wrapper"> <nav> <ul> <li><a href="index.html">展示会一覧</a></li> <li><a href="">写真家一覧</a></li> <li><a href="about.html">運営会社</a></li> </ul> </nav> </div> </header>
あと先ほどから気になることが。
ご指摘いただいた「<?php echo get_template_directory_uri(); ?>」の"uri"をwordpress側で全て修正し、google検索で「<?php echo get_template_directory_url(); ?>」と検索したところ、検索結果もcodexの中身も全て"url"の部分が"uli"と表示されます。どのサイトも全てそのように表示されます。このパソコンが何かおかしいのでしょうか・・。
回答1件
あなたの回答
tips
プレビュー