资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

wordpress版权d wordpress版权修改

wordpress主题修改底部版权

一、工具:电脑、wordpress

景泰网站制作公司哪家好,找创新互联!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联于2013年创立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联。

二、操作步骤:

【1】登录wordpress后台,找到“外观”-“编辑”。

【2】进入“编辑”页面,找到“ 底部 (footer.php)”

【3】找到a href=”?php echo esc_url( __( ‘’, ‘twentyfourteen’ ) ); ?”?php printf( __( ‘Proudly powered by %s’, ‘twentyfourteen’ ), ‘WordPress’ ); ?/a,将此段代码删除,改为自己的版权信息。

【4】最后点击更新文件,修改结束,刷新首页看修改效果吧。

注意事项:修改之前,先备份一份,以免修改错误回不到初始了。

如何去掉或者取消WORDPRESS主题中HEADER和FOOTER中的版权

很多人在下载了自己中意的Wordpress主题,但页脚的链接去不能去除,今天在帮朋友装一个Wordpress博客的时候就遇到这事,在百度了好久没收到什么结果,没想到最后以一个不可思议的办法来解决这个事情,但我们并不建议去掉人家的版权链接,这里只做参考学习。

一般为统计博客版本信息等原因,wordpress会在头部置入一下版权信息

meta name="generator" content="WordPress 2.9.2" /

部分人为了安全,希望能去掉这个信息,因为不知道版本也就无法针对具体版本的漏洞进行攻击,当然还有其他原因……

直接看看去掉的方法:在你的当前主题funtions.php中添加以下代码,并建议放在最前面

function i_want_no_generators()

{

return '';

}

add_filter('the_generator','i_want_no_generators');

一般来说,为了博客的安全,还是建议大家把wordpress中的版本信息去掉,象wordpress2..92,wordpress 3.0.1这个注释掉,防止黑客或病毒攻击,上面应该是最好的方法了吧,最简单,也是最暴力的方法就是直接把

How To Remove Encrypted Footer From Wordpress Theme?

Please follow these steps to remove footer encryption from wordpress theme footer:

Step 1

Open index.php and find include code for the footer. The footer include code looks like:

?php get_footer(); ?

Step 2

Add this comment code on the top and bottom of the footer code:

!–Footer code starts here–

?php get_footer(); ?

!–Footer code ends here–

Save the file and upload it to the server.

Step 3

Load the theme in a browser. View the source code by clicking

View - Source (If you view in IE) or

Ctrl + U (If you view in Firefox)

Step 4

The source code in between !–Footer code starts here– and !–Footer code ends here– is the source code for the footer.

Now, open footer.php and replace the encrypted code with the actual source code. We can then start to modify the footer in anyway we want. But make sure that we have taken require permissions from the theme author.

如果英文看不懂的话,可以GOOGLE翻译下,也可以留言问我。

网上关于去除版权版本等信息的资料

wordpress版权去除

如果只修改以下footer.php,,当点「更新文件」时就出现了这样一句话:

This theme is released under creative commons licence, all links in the footer should remain intact

而且後台也进不了了,始终出现的都是这句话。没办法,只有通过FTP重新上传了主题,还好现在可以进了,不过footer.php那依然不能修改,改了就又会出现那句话。

查找了有关资料发现header.php有两段关於eval的语句,functions.php里也有。问题就在这里,下面介绍解决方法吧:

一:先删除header.php里开头的那个eval语句,即:

?php

eval(str_rot13('shapgvba purpx_s_sbbgre(){vs(!(shapgvba_rkvfgf("purpx_sbbgre")

......

vagnpg');qvr;}}purpx_s_sbbgre();'));

?

二:将header.php里第二处eval语句

?php eval(str_rot13('shapgvba purpx_shapgvbaf(){vs(!svyr_rkvfgf(qveanzr(__SVYR__)

......

vagnpg');qvr;}}purpx_shapgvbaf();')); wp_head(); ?

?php get_header(); ?

替换掉。

三:去掉functions.php开头的

?php

eval(str_rot13('shapgvba purpx_sbbgre()

......

vagnpg');qvr;}}'));

?

四:删除functions.php里面的

check_header();

有多少处,删多少!

五:没有了,至此你已经对footer.php有绝对控制权了。

可能是由於习惯,经常习惯了把版权信息去掉,我在使用wordpress过程中,发现功能版块除了登入\登出,管理,Feed以外,还有一个wordpress链接。

太讨厌了,博客底部本来就有一个wordpress.org的链接,结果现在又有一个链接,光一个页面就有2个链接,下面,我还是教大家如何去掉它好了。

找到你的博客安装目录,在wp_includes文件夹下面有一个default-widgets.php的文件,并找到以下代码

lia title=」?php echo esc_attr(__(『Powered by WordPress, state-of-the-art semantic personal publishing platform.』)); ?」 href=」」WordPress.org/a/li

我们把这一行所在的代码全部删除了。

注释掉或者直接删掉。这样侧栏上的wordpress.org链接我们就去掉了。

在wordpress中,一般情况下,在header的信息总是会包含wordpress的版本信息,如何去除这个内容呢,很简单,在function.php中添加

remove_action(『wp_head』, 『wp_generator』);

就可以去除wordpress的版权信息了。

在wp博客中,有一个常见的安全技巧是:不要在你的wp中显示出你的版本信息。许多开发者或者使用者都常常将wp的版本信息显示了出来,但这样可能会被一些人利用该版本的漏洞对你的博客进行攻击。很多人对此比较模糊,这样可能就会给你的博客带来安全性的问题。

默认情况下,当wp_head() 函数在header.php文件的head标签中被调用时wordpress就执行了wp_generator(),wp_head()函数所处位置如图:

当wordpress在网页中运行时,wp_generator()函数输出如下内容(可以在页面源代码中查看到):

1

meta name="generator" content="WordPress 2.8.1" /

那麼如何去除wordpress的版本信息以保证博客的安全呢,方法有三:

1. 最暴力的方法:

直接删除header.php文件中的wp_head()函数(我当前主题就是采用的这种方法);

2. 比较好的方法:

比删除wp_head()函数更好的方法是在function.php文件中添加一个功能函数,通过返回一个空白的字符串给the_generator()函数,这样输出的版本信息将为空,代码如下:

1

2

3

4

function remove_version_info() {

return '';

}

add_filter('the_generator', 'remove_version_info');

3. 正确的方法:

只需在function.php文件中添加41个字符的代码,即可实现,它是通过remove_action()函数删除了wp_head()函数中的wp_generator()函数,代码如下:

1

remove_action('wp_head', 'wp_generator');

修改atahualpa theme footer的版权信息

今天修正一下BLOG,好久没有更新了,看到右边和下面一些链接,想要修整一下。由于这个BLOG网站PR比较低,现在有很多链接链出去,所以想把链接撤下来,只留一个版权文字。

其他的WORDPRESS模板,只要找到FOOTER.PHP,就可以看到里面的一些版权链接信息,可这个atahualpa theme,让我找了半天,依然无果,FOOTER.PHP里面,根本就没有什么版权信息,也没有链接,找遍了整个文件,依然无果,不得已,只好求助于GOOGLE,经过找寻,发现了解决办法,原来atahualpa theme把版权信息写在了FUNCTION.PHP里,下面是解决办法:

I’m pretty sure that the output that you wish to modify in the Atahualpa theme footer,

“Powered by WordPress – Atahualpa Theme by BytesForAll”,

can be found in “functions.php”, located in the Atahualpa theme folder, starting at line number 660.

Best wishes!

果然是高手,找到这个文件,然后把版权信息的链接去掉,代码就变成这个样子了:

function footer_output($footer_content) {

$footer_content .= ‘br /Powered by WordPress the Atahualpa WP Theme by BytesForAll. Now with Tutorials Support’;

return $footer_content;

}

修改后,页脚的样子,没有链接了

wordpress主题版权怎么隐藏或删除

wordpress主题版权隐藏或删除的方法:

wordpress默认主题功能模块调用的是wordpress原程序中wp-includes文件夹中的默认代码,我们修改的时候只需要找到原始文件,去除多余代码即可:

1、用编辑工具dreamweaver或是UE等打开以下路径中的文件:wp-includesdefault-widgets.php;

2、Ctrl+F搜索“?php wp_register(); ?”,找到以下代码:

ul

?php wp_register(); ?

li?php wp_loginout(); ?/li

lia href=“?php bloginfo(‘rss2_url’); ?” title=“?php echo esc_attr(__(‘Syndicate this site using RSS 2.0’)); ?”?php _e(‘Entries abbr title=“Really Simple Syndication”RSS/abbr’); ?/a/li

lia href=“?php bloginfo(‘comments_rss2_url’); ?” title=“?php echo esc_attr(__(‘The latest comments to all posts in RSS’)); ?”?php _e(‘Comments abbr title=“Really Simple Syndication”RSS/abbr’); ?/a/li

lia href=“?php esc_attr_e( ‘’ ); ?” title=“?php echo esc_attr(__(‘Powered by WordPress, state-of-the-art semantic personal publishing platform.’)); ?”?php

/* translators: meta widget link text */

_e( ‘WordPress.org’ );

?/a/li

?php wp_meta(); ?

/ul

其中如下的三句代码分别是控制“文章RSS”、“评论RSS”、“WordPress.org”输出的,删除即可:

lia href=“?php bloginfo(‘rss2_url’); ?” title=“?php echo esc_attr(__(‘Syndicate this site using RSS 2.0’)); ?”?php _e(‘Entries abbr title=“Really Simple Syndication”RSS/abbr‘); ?/a/li

lia href=“?php bloginfo(‘comments_rss2_url’); ?” title=“?php echo esc_attr(__(‘The latest comments to all posts in RSS’)); ?”?php _e(‘Comments abbr title=“Really Simple Syndication”RSS/abbr‘); ?/a/li

lia href=“?php esc_attr_e( ‘’ ); ?” title=“?php echo esc_attr(__(‘Powered by WordPress, state-of-the-art semantic personal publishing platform.’)); ?”?php

/* translators: meta widget link text */

_e( ‘WordPress.org’ );

?/a/li

去除底部“自豪地采用 WordPress”版权信息:

1、打开主题文件夹:wp-contentthemestwentyelevenfooter.php;

2、搜索找到以下代码:

a href=“?php echo esc_url( __( ‘’, ‘twentyeleven’ ) ); ?” title=“?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentyeleven’ ); ?” rel=“generator”?php printf( __( ‘Proudly powered by %s’, ‘twentyeleven’ ), ‘WordPress’ ); ?/a

3、删除这段代码即可,当然删除后会什么都不显示,这样不是很美观,我们可以自己添加下自己的版权信息,可以替换为以下代码:

a href=“?php echo get_option(‘home’); ?” title=“?php bloginfo(‘name’); ?” rel=“generator”?php bloginfo(‘name’); ?/a


网站名称:wordpress版权d wordpress版权修改
网页路径:http://cdkjz.cn/article/dogeepj.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220