タイトルの変更
現在
タイトルが
jQuery Mobile
となっているので、これをサイト名に変更します
header.php の
<h1>jQuery Mobile</h1>
の部分を
<h1><?php bloginfo('name'); ?></h1>
にします
これでテンプレを使っているので
ダッシュボードでサイト名を変更しても自動更新してくれます
今回の変更で header.php のソースは以下のようになります
<!DOCTYPE html> <html> <head> <meta charset="<?php bloginfo('charset'); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php if(!is_home()){ wp_title('|',true,'right'); } bloginfo('name'); ?></title> <link rel="stylesheet"type="text/css" href="<?php echo get_stylesheet_uri(); ?>" > <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" /> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"> </script> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div data-role="page" data-title="jQuery Mobile"> <div data-role="header"> <h1><?php bloginfo('name'); ?></h1> </div> <div role="main" class="ui-content">