WordPress文章自動添加版權(quán)信息
2019-12-10 來源:20xue.com

一直以來沒有設(shè)置自動版權(quán)信息,老是在文章結(jié)尾的時候標(biāo)注一下。最近時間緊迫發(fā)現(xiàn)了,自動版權(quán)信息的作用。于是我無意中看到了的博客,感覺文字框還不錯,就用Chrome查看其CSS樣式,結(jié)合Wordpress簡單的函數(shù)得到了我現(xiàn)在的版權(quán)信息:
具體步驟如下:
打開后臺編輯,選擇Single.php 找到 <?php the_content(__('Read more', 'piano-black')); ?>
在其下方加入如下代碼(提醒確保CSS中的樣式名無重復(fù),重復(fù)的話就去修改一下名字)
<div style="border:1px dashed #ddd; padding:10px; margin:10px 0;line-height:26px;border-radius: 3px;"><div> » <b>本文鏈接:</b><a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php echo wp_get_shortlink(); ?></a></div><div> » <b>訂閱本站:</b><a title="Quicl’sBlog" href="http://feed.***.com" rel="external nofollow">http://feed.***.com</a></div><div> » <b>轉(zhuǎn)載請注明來源:</b><a title="Quicl’sBlog" href="http://***.com" rel="external nofollow">Quicl’sBlog</a> » <a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">《<?php the_title(); ?>》</a></div></div>
OK,現(xiàn)在刷新一下你的文章,就會看到這個嘍!本文《WordPress文章自動添加版權(quán)信息》。
原創(chuàng)于Quicl’sBlog ,轉(zhuǎn)載注明出處http://20xue.com/?p=1864
標(biāo)簽: Wordpress博
版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請與原作者聯(lián)系。