【发布时间】:2012-02-26 04:01:32
【问题描述】:
您好,我是新手,请多多包涵。我有一个 html 格式的免费主题,它上面有一个控制 twitter 的元素。我想将这种外观添加到我的 wordpress 博客的页脚。我已插入以下代码:
在functions.php中 !! wp_enqueue_script('inkthemes_tweet', get_stylesheet_directory_uri() . '/js/jquery.tweet.js', array('jquery'));
在footer.php中
<div class="twitter-head">
<h1>Twitter</h1>
<a class="readmore tw" href="#">Follow Me</a>
</div>
<div class="tweet"></div>
我在 js 目录中有实际的 jquery.tweet.js 文件
页脚上唯一显示的是 TWITTER & follow me
看来我还需要一些代码,在此先感谢
【问题讨论】: