2011年3月1日火曜日

【Tips】 ブログ末尾の Attributionを消す方法


1  Go to Design > Edit HTML.
2  Take a backup:
Download a copy of your template:  this is a backup – save it somewhere safe, in case things go wrong.
3  Click Expand Widgets, so you can see all the code
 Find this section in the template:

<b:widget id='Attribution1' locked='true' title='' type='Attribution'/>

これを下のように書き加える

<!-- <b:widget id='Attribution1' locked='true' title='' type='Attribution'/> -->





 Preview the template change, to check that everything is ok.  If not, fix the problem

6  Click Save Template
7  As the template tries to save, you will get a warning message:

Warning: Your new template does not include the following widgets:

  • Attribution3
Would you like to keep these widgets on your blog or delete them?
Deleting widgets cannot be undone.
Click ウィジェットを削除する:  This will leave an attribution Gadget in the set of Widgets that your blog has data about, even though it’s not actually showing it on the screen.

【Tips】 ブログ末尾のホームやAtomを消す方法


A. 「ホーム」を非表示にする
 
HTML編集ウィンドウをクリックした後、Ctrl+F キーを押し検索
ウィンドウを表示させます。
 
下記の行をコピー&ペーストして、検索をかけます。
 
'home-link'
 
見つかった箇所 <a class='home-link' … </a> という箇所を丸ごと
削除します。
 
削除がイヤな人は、前後に
 
  前:<!--
  後:-->
 
というコードを入れることでも非表示にできます。以降も同じです。
 
 
 
 
B. 「前の投稿」を非表示にする
 
下記をコピー&ペーストして、検索をかけます。
 
'blog-pager-older-link'
見つかった箇所、以下の範囲をまるごと削除します。
<span id='blog-pager-older-link'> 
      <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a> 
      </span>

このコードを無効化することにより、完了です。
 
 
 
C. 「投稿(Atom)」を非表示にする
 
下記をコピー&ペーストして、検索をかけます。
 
'feed-link'
 
見つかった箇所から、ちょい上の範囲から下記箇所をまるごと削除します。
<data:feedLinksMsg/> 
  <b:loop values='data:links' var='f'> 
     <a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a> 
  </b:loop>

これで、Blogger の下に表示されてる項目は消去完了です。お疲れ様でした。