3月 142018
 

googleadsenseの「自動広告の導入」がとても便利そうなので、使ってみようと思ったとき、
header部分に入れる方法。

wordpressの編集画面 > 外観 > テーマの編集

で、編集するテーマを選択:「STINGER PLUS2」にして選択ボタンを押す。

テーマファイルから「テーマヘッダー(header.php)」を選択。

<head>から</head>までの間にhtmlコードをコピペする。
この時、phpコードの中にhtmlが入らないようにします。
phpコードの中にhtmlが入ってしまうと、htmlとして解析されず、ページエラーが発生します。

<?php get_template_part( ‘a-header-code’ ); //ヘッダーに挿入するコード ?>から</head>の間に入れておきました。

 

よく読まれている記事

この記事を読んだ人は次の記事も読んでいます:

このエントリーをはてなブックマークに追加
はてなブックマーク - wordpress STINGER PLUS2のheader部にhtmlを挿入
[`google_buzz` not found]
[`yahoo` not found]
[`livedoor` not found]
[`friendfeed` not found]
[`tweetmeme` not found]
[`grow` not found]
[`evernote` not found]

 Posted by at 6:30 PM

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)