在每一篇 文章末端 加上自訂義內容。
登入你的主機ftp,編輯 /wp-content/themes/佈景主題名稱/function.php
在程式尾端加入以下語法。
1 2 3 4 5 6 7 |
function wpb_after_post_content($content){ if (is_single()) { $content .= '喜歡我的文章嗎?歡迎按讚加分享,或是點擊右方廣告讚助我喝一杯咖啡吧 ^_^ => '; } return $content; } add_filter( "the_content", "wpb_after_post_content" ); |
顯示效果如本文章末端。
備註:
建議使用子布景主題下操作,避免主題更新後相關設定被清除。