2013-07-22 28 views
0

我試圖在wordpress頁腳中添加一些信息。 我在我現在使用的主題中對footer.php文件進行了一些修改。 代碼如下:如何在wordpress-mu頁腳中添加一些信息?

<?php 
/** 
* The template for displaying the footer. 
* 
* Contains footer content and the closing of the 
* #main and #page div elements. 
* 
* @package WordPress 
* @subpackage Twenty_Twelve 
* @since Twenty Twelve 1.0 
*/ 
?> 
    </div><!-- #main .wrapper --> 
    <footer id="colophon" role="contentinfo"> 
     <div class="site-info"> 
      <?php do_action('twentytwelve_credits'); ?> 
      <a href="<?php echo esc_url(__('http://wordpress.org/', 'twentytwelve')); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentytwelve'); ?>"><?php printf(__('Proudly powered by %s', 'twentyeleven'), 'WordPress'); ?></a> 
     </div><!-- .site-info --> 
     <div><?php echo "test"; ?></div> 
    </footer><!-- #colophon --> 
</div><!-- #page --> 

<?php wp_footer(); ?> 
</body> 
</html> 

我期望的輸出是在我的博客的頁腳中的字符串「測試」,但實際的結果是,字符串「測試」是不是在頁腳。 我的WordPress的版本是3.5.2,我使用wordpress-MU和buddypress作爲插件。 任何幫助PLZ ~~

+0

有錯誤,因爲你已經使用HTML PHP評論。 –

+0

@BindiyaPatoliya:我該如何解決這個問題? – Charles0429

+0

@BindiyaPatoliya://由我添加不存在的是最終的代碼,我只是想介紹我添加代碼的位置? – Charles0429

回答

0

編寫代碼的網站信息DIV中:

<div class="site-info"><!-- .site-info --></div> 
相關問題