![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 117.95.54.89
|
|||
|
|||
|
我老姐是做家居设计的,前几天帮她做一个作品案例展览的网站,使用Wordpress系统和Zinfo主题。想修改该主题底部的最近文章和最新评 论,换掉其它的,但Zinfo主题的footer.php文件加了密。用PHP的破解方法行不通后,想起用浏览器的查看源码好像可以行得通,事实正是如 此。
我使用的是firefox浏览器,步骤很简单,打开网站首页,在网页空白处右击,然后选择查看”页面源代码“,通过打开的源代码页面即 可查看footer代码(一般是在底部)。把底部的相关代码复制出来,然后更改相关主题标签。 以下是通过firefox浏览器的页面代码获 得的zinfo的footer的代码,把其中红色的部分换成wordpress相应的标签即可。然后把改好的代码复制粘贴到原footer.php文件。 <div id=”footer”><div id=”footer-in”> <div> <div id=”recent-entries”> <h2>Recent Posts</h2> <ul> <li><a href=”http://www.lixue.info/2010/01/31/1.html” rel=”bookmark” title=”Permanent Link: Hello world!”>Hello world!</a></li> </ul> </div> <div class=”block last” id=”recent-comments”> <h2 class=”block-title”>Recent Comments</h2> <ul id=”recent-comments”> <li><span>WordPress先生:</span> <a href=”http://blog.zloo.net/2010/01/31/1.html#comment-1″ title=”on Hello world!”> 嗨,这是一条评论。要删除一条评论,请先登录系统,查看这篇 文…</a></li> </ul> </div> <div id=”footer-link”> <p>Copyright © 2010 <a href=”http://www.lixue.info” title=”家居设计“>家居设计</a> - 又一个 WordPress 博客.Subscribe to our <a href=”http://www.lixue.info/feed”>RSS</a>.<br/>This web site is proudly powered by <a href=”http://wordpress.org”>WordPress</a> and a free <a href=”http://topwpthemes.com”>wordpress theme</a> byTopWPThemes.com.<br/> For the latest trends in <a href=”http://www.webhostingfan.com”>webhosting</a> and blogging software come to WebHostingFan.com.</p> </div><!– /footer-link –> </div></div>/div><!– /footer –> 除了 firefox浏览器可以获得源代码外,其它的浏览也可以: IE浏览器:点击查看——源文件 谷歌浏览器:点击地址栏后面的 “控制当前页”——开发人员——查看源代码 遨游浏览器:点击查看——查看源代码 注意:要 备份原文件。改footer时候不要把版权信息也改掉,一定要保留! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|