本文实例讲述了WordPress文章底部去除与增加版权信息的办法。分享给大家供大家参考。详细剖析如下:
这里参考一些网友的版权申明信息,详细更改办法为:
外观>>编辑“single.php”文件,找到相似“p class="content"”的源码,在上面相应地位增加.
参考一,代码如下:
<p>本文链接: <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_permalink(); ?></a><br/>转载请注明转载自:<a href="">SeaRu</a></p><br/> » 本文链接:<a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php echo wp_get_shortlink(); ?></a>
<br/> » 订阅本站:<a title="SeaRu" href="" rel="external nofollow">http://feed. searu.org</a></p> <br/> » 转载请注明起源:<a title="SeaRu" href="" rel="external nofollow">SeaRu</a>
<br/> » <a rel="bookmark" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">《<?php the_title(); ?>》</a></p><blockquote><center><font color=gray size=-1>
本文由 [<strong><?php the_author_posts_link(); ?></strong>] 原创,转载请注明转自:<strong><?php bloginfo('name'); ?></strong>[<a href="<?php echo get_settings('home'); ?>"><?php echo get_settings('home'); ?></a>];
假如你感觉本博内容不错,欢送 [<strong><a href= target="_blank">订阅我的博客</a></strong>],以便**工夫理解本博更新内容;
本文链接:<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_permalink(); ?></a>
</font></center></blockquote>
心愿本文所述对大家的WordPress建站有所协助。
以上就是安达网络工作室关于《WordPress文章底部去除与添加版权信息的方法》的一些看法。更多内容请查看本栏目更多内容!
本文实例讲述了WordPress修正评论默许头像的办法。分享给大家供大家参考。详细剖析如下: 咱们晓得wordpres...
在主题的function.php文件中,能够找到形如如下内容的语句:复制代码代码如下:if ( function_exists(&lsquo...
一、增加一个存储投稿者邮箱的自定义栏目 关上WordPress增加投稿性能,上面咱们将对这篇文章中的代码进...
效劳器钱用光了要关了或许是效劳器想要搬家,需求备份各种数据。 明天简略的备份了一下在效劳器下面wordpre...
下文提到的一切代码,都是增加到主题的funshions.php 文件的最初一个 ?> 的后面。 制造一个名为 login_logo...
get_template_part() 用来援用模板文件,相似于 get_header()、get_sidebar() 和 get_footer(),只不过这个...