First page of the twitter archive.

WordPressfollowmeプラグインエラー

Posted by jisava on 11月 23, 2009 with Closed
in WordPress設定
as

WordPressでfollowmeプラグインをインストールするとエラーになった。たぶんだけどテンプレートとの相性が悪いのでしょう。followmeプラグインとは最近始めたtwitterのバッチプラグイン。このブログの左側にあるやつですね・・・そこで直接テンプレートをいじってみた。

まずは、こちらでfollowmeバッチコードを入手「Twitter Follow Badge for your site / blog

dash

ダッシュボード左側の「外観」から「編集」と進みフッター (footer.php)に以下のようにコード記載することで、twitterのバッチエラーがなくなり正常に表示されました。

</div> <!– #head2toe –>
<div id=”footer”>
  <div id=”footer-top”></div>
       
  <div id=”footer-widgets-above”></div>
   
    <div id=”footer-widgets”>
    <!– NB: It is very important to maintain the order of the following widget code to insure the formatting and style does not break!!! –>
      <div id=”fw-middle”>
        <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(“footer-middle”) ) : else : ?>
        <div></div>
          <div>
            <!– Middle Footer Widget –>
            <?php bns_login(); ?>
            <!– Remove the following line to delete the reminder text under the BNS-Login function output –>
            <h6><?php _e(‘If you use this widget area please consider using the ‘, ‘pinup-meets-grunge’); ?><a href=”http://wordpress.org/extend/plugins/bns-login/” title=”<?php _e(‘BNS-Login plugin at WordPress’,'pinup-meets-grunge’); ?>”>”BNS Login”</a><?php _e(‘ plugin. Thank You!’, ‘pinup-meets-grunge’); ?></h6> 
          </div>
        <div></div>
        <?php endif; ?> <!– end widget zone footer-middle –>
      </div>
     
      <div id=”fw-left”>
        <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(“footer-left”) ) : else : ?>
<!–
        <div></div>
          <div>
            Left Footer Widget – Remove all the HTML comments to “hard-code” items into this section
          </div>
        <div></div>
–>
        <?php endif; ?> <!– end widget zone footer-left –>
      </div>
     
      <div id=”fw-right”>
        <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(“footer-right”) ) : else : ?>
<!–
        <div></div>
          <div>
            Right Footer Widget – Remove all the HTML comments to “hard-code” items into this section
          </div>
        <div></div>
–>
        <?php endif; ?> <!– end widget zone footer-right –>
      </div>
    </div> <!– #footer-widgets –>
       
  <div id=”footer-widgets-below”></div>
       
  <div id=”footer-middle”>
    <p>
      <?php _e(‘Copyright’, ‘pinup-meets-grunge’); ?> &copy; <?php echo date(“Y”); ?>  <strong><?php bloginfo(‘name’); ?></strong> <?php _e(‘All rights reserved’, ‘pinup-meets-grunge’); ?>.<br />
      <?php $blog_css_url = get_bloginfo(’stylesheet_url’); $theme_data = get_theme_data($blog_css_url); echo $theme_data['Name']; ?> v<?php echo $theme_data['Version']; ?>
      <?php $parent_blog_css_url = get_bloginfo(‘template_url’) . ‘/style.css’; $parent_theme_data = get_theme_data($parent_blog_css_url);
      if ($blog_css_url != $parent_blog_css_url) {
        _e(‘ a child of the ‘, ‘pinup-meets-grunge’); echo $parent_theme_data['Name']; ?> v<?php echo $parent_theme_data['Version'];
      } ?>
      <?php _e(‘theme from’, ‘pinup-meets-grunge’); ?> <a href=”http://buynowshop.com/” target=”blank”>BuyNowShop.com</a>.
    </p>
  </div> <!– #footer-middle –>
       
  <div id=”footer-bottom”><?php wp_footer(); ?></div>
       
</div> <!– #footer –>
</div> <!– #outside –>
</div> <!– #full-screen –>
<!– twitter follow badge by go2web20 –>
<script src=’http://files.go2web20.net/twitterbadge/1.0/badge.js’ type=’text/javascript’></script><script type=’text/javascript’ charset=’utf-8′><!–
tfb.account = ‘luckynanbar’;
tfb.label = ‘follow-me’;
tfb.color = ‘#ee1d24′;
tfb.side = ‘l’;
tfb.top = 136;
tfb.showbadge();
–></script>
<!– end of twitter follow badge –>

</body>
</html>

 

</body>タグの直前に「赤い部分」コード入れるのが肝ですね。