WordPress 3.2发布了,也为我们带来了非常酷的Twenty Eleven主题。唯一一点遭人诟病的就是Twenty Eleven主题的文章页面没有侧边栏。如何为Twenty Eleven主题的文章页面添加侧边栏呢?请看下面的方法吧:1.在single.php文件中找到以下代码:在其上加入侧边栏调用标签,类似下面的情况: 如果你想为page页面也添加侧边栏,可以重复上面的步骤。不同之处在于修改page.php文件而已。2.最后,你需要在functions.php文件中删除或注释以下代码: function twentyeleven_body_classes( $classes ) { if ( ! is_multi_author() ) { $classes[] = 'single-author'; } if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) ) $classe
最近给自己的博客加上了Google Adsense广告,并使用帕兰映像提供的方法给自己的广告加上了阴影背景效果。起初挂广告是因为觉得好玩,前些天登录Google Adsense发现有一次点击,得到0.05美刀,这让我多少有些沮丧。所以我打算去掉广告,并把为Google Adsense广告加上阴影背景的方法做个备忘。具体方法:1、将Google Adsense代码插入一个如下div标签中: 将Google Adsense代码插入这里 2、在style.css文件中插入以下css代码: .post-top-ad{background:url(images/bg_ad_2.gif) no-repeat left bottom;padding-left:115px;margin-left:15px;} .post-top-ad .gg{width:336px;height:280px;border:5px solid #000;} .post-top-ad .gg:hover{border:5px solid #C00909;} 3、用photoshop或其他制图软件制作一个背景图片,并将其命
在博客平台不断发展的今天,你是不是为了选择在哪里安家而有点纠结?关于博客平台的讨论很多都是从开发商的角度来看问题,而忽略了其实有很多人并不是活在代码的世界中。所以我希望能从理性的角度来帮助同学们分析他们各自的优缺点,从而能让同学们做出理智的选择。数据比较根据WordPress.com和Tumblr各自的网站数据来看,轻博客平台Tumblr的博客数量到目前为止约为2241万,而WordPress的博客数量约4926万(这个数据是WordPress.org开源程序建立的个人网站加上在WordPress.com托管的博客的总和)。笔者在写这篇文章时,Tumblr今天已经有34132487篇新帖子发布,远远超过了WordPress.com的390690篇日志和313915条评论。虽然WordPress.com的数据不包含那些自己使用WordPress开源程序建设的个人网站,但鉴于Tumblr在落后4年的情况下还能取得这样的成绩,实在让人惊叹。两个平台的优点 都是免费的,意思是你不用花钱就能够使用,虽然开发这两个平台不一定免费。 都可以安装免费的主题。 这两个平台都可以自定义设计和功能。
目前在WordPress上添加广告的方法有两种:一种是将广告代码直接插入WordPress主题模版中,另一种是使用WordPress广告插件。相比较而言,前者不使用插件,那么在速度上会比后者快一些,但是不容易上手,必须要懂一些编程基础知识的人才能得心应手;而后者的优势在于容易上手,只需要使用广告插件就能在自己的博客上插入广告。今天就来介绍一款WordPress广告插件中的佼佼者——Max Banner Ads。Max Banner Ads在同类插件中的优势在于你可以将广告代码插入任何一个地方,且不需要编写代码。不仅如此,Max Banner Ads还具有广告分析功能,可以帮你分析广告效果,从而为你带来更多的收益。Max Banner Ads 插件安装: 下载Max Banner Ads 插件,将文件解压缩,上传到/wp-content/plugins/目录。 登录wordpress后台的插件控制面板激活该插件。 左侧的导航栏--->工具--->Max Banner Ads进入设置页面,填写用户名、Email,点击Register激活。 进入页面后你会看到下面的内容
最近办公室新装了两台电脑,又有现成的交换机,所以就自己实践了一下如何使用交换机让两台电脑上网。现在网上搜索的很多方法都并不可行,下面将我使用的交换机设置方法分享给大家:一、将ADSL的连线接到Modem上。二、Modem的线接到交换机上。三、再从交换机上分出两根网线,分别接入主机和从机。四、不要将主机手动指定IP地址,自动获取就行。五、右键【宽带连接】--属性--高级--Internet连接共享—勾选【允许其他网络用户通过此计算机的Internet连接来连接】--确定(如图1)。图1这时候,如果我们细心点,就会发现在主机【本地连接】的Tcp/IP协议那里,系统会自动设定为手动连接IP地址项,并分配了IP地址192.168.0.1和子网掩码:255.255.255.0。(如图2)(P.S:主机之前是自动分配IP地址。)图2 六、从机设置:IE---工具---Internet选项---连接—勾选【从不进行拨号连接】,应用---确定。从机的【本地连接】无论是手动指定还是自动获取,什么都不用操作,就可以正常上网了。P.S:若还是无法上网,请重启电脑,之后两台电脑就都能上网了。
Hunter