WordPress 主题发布: SthBlue
关于SthBlue
点击预览
SthBlue 是我写的第一个WordPress主题,它是一个两栏的主题,该主题兼容最新版本的 WordPress,支持 Widget,通过 CSS 和 XHTML 验证,在 IE6 / 7,FF2 / 3 等浏览器表现一致,并且带有汉化包,不需要任何插件支持。安装完成后,可以在后台选项中进行设置。欢迎下载使用,如遇到使用问题或者发现主题bug,请在文章评论或者是留言板中告诉我,谢谢。
Description
This is a simply clever blue theme with two columns, right-sidebar, fixed-width, widget-ready and translation is ready. Compatible with Wordpress 2.9.1, valid XHTML & CSS and easy to customize via settings-page. Stay updated!
If you would like to provide a new feature or suggest changes, please post it as a comment on this article. I will add it to the list.
Changelog
Version 1.5
- Added ‘Submit comments with Ctrl+Enter’ option.
- Added google cse for search form option.
- Added ‘twitter’ options.
- Added ‘feed’ option.
- Added ‘web analytics’ options.
- Fixed search form localization.
- Fixed icons of sidebar widgets.
- Fixed post paragraph spacing.
- Update Simplified Chinese translation.
Version 1.4
- Fixed localization bugs.
Version 1.3
- Fixed PHP tags in some places.
- Fixed blog title code at the top
Version 1.2
- Added RSS widget in sidebar.
- Added different icons for sidebar widget.
- Changed title datetime layout background to fit the theme.
- Changed sidebar font color
Version 1.1
- Fixed IE6.0 layout bug.
Version 1.0
- First upload to the Wordpress directory.
更新日志
版本1.5
- 新增 “Ctrl+Enter” 快捷键发表评论选项。
- 新增在搜索栏使用 google 自定义搜索选项。
- 新增 “twitter” 选项。
- 新增 “feed” 选项。
- 新增 “google web analytics” 选项。
- 修正搜索栏汉化错误。
- 修正侧边栏使用wigdet图标显示错误。
- 修正文章中段落间距。
- 更新简体中文翻译。
版本 1.4
- 修正了几处汉化错误。
版本 1.3
- 在header.php中修复了 PHP 标签 – -。
- 修改了标题处的代码和CSS。
版本 1.2
- 在侧边栏中加入RSS订阅。
- 为侧栏中的小工具加入不同的图标。
- 修改了标题的日期背景显示。
- 修改了侧边栏字体颜色。
版本 1.1
- 修正IE6.0下主题错位问题。
版本 1.0
- SthBlue第一个版本上传至Wordpress directory。







你好。我换了你这个主题之后 ,下面评论那里显示不正常 。就是我现在留言这个地方 。不知道出了什么问题。
你好,我去你的网站上看了下,感觉没什么问题呀,你能 具体说明下么:?:
XHTML: You can use these tags:
评论这里有这些代码。显示特别小。这里应该是多出来的代码吧 。后面的Name,电子邮箱,网址这些字体也比较小 。其他的都很不错。我很喜欢这个主题。
你好,这行代码不是多出来的,是我在评论的表单里放入的。目的是为了告诉访客你可以在评论的时候使用这些标签代码。如果你不想使用的话,可以在主题目录下的comments.php文件第84行找到
XHTML: You can use these tags:
< ?php echo allowed_tags(); ?>这句话,注释掉就可以了。
Hello everybody
I am a newbie colleague to this site.
我是菜鸟,向您请教一个问题。寻找wp主题很久了,昨天一眼就看中你提供的SthBlue主题。先说声谢谢哦,感激啊。问题就是,在启用SthBlue主题后(我的WP是2.8.6版本),假如你点击每篇文章题目,进去后对其评论时,评论框右下角不是有下一篇文章的题目吗。你点击文章题目就能浏览下一篇文章。可我试了却出问题了,所有首页及文章跑到左边一侧,背景图似乎不见了,除了文字全是白色。我是在IE6下测试的,在谷歌浏览器一切正常。我想是插件原因,于是插件全部停用,问题依然没解决。难道这个主题不能完美支持2.8.6版本?麻烦告知。举个例子,进入你的博客,预览SthBlue主题,点击你的第一篇文章题目hello world,进去后点击右下角Layout Text,旁边还有两小箭头》》,点击Layout Text就能进入下一篇文章。我测试了,你的没有问题。可我的却出现上面所说问题,我想是wp版本问题?希望您能帮我解决这个问题。谢谢。
你好,我在IE6下也测试过了,没有发现你说的问题。而且这款主题就是为了支持2.7以上版本才做的。最好你能把你发现错误的网址发过来给我看一下,我才可能知道是什么原因引起的。
问题解决了。呵呵。在后台发现您发布了sthblue.1.4版本,升级后就解决了。这主题太完美了。期待你把这个主题发扬广大,把主题完善的越来越完美。哈哈。再次说声谢谢。非常感激。
呵呵,也感谢你的使用~~
I love the theme – I’m using it for my blog now. Was wondering if there is a way to put spaces between paragraphs? Right now they’re close together; I’d love to have a 6pt spacer between each paragraph.
Great job, though!
@Matthew McNutt
Thanks for using it, you can add
.post .content p { margin-bottom: 6px; }to style.css file in your template directory to resolve the problem. Then each paragraph in your post will have a 6pt spacer. And I will add this to my next version theme. Thank you for your suggetions!
很不错的主题,我在汉化另一个主题,出了点问题,能帮忙指点一下吗?
我的QQ:4805076.谢谢.
主要就是index.php这个文件,其它文件我先汉化,都测试正常,只有它,
会让首页的框架变形,把侧边栏挤到下边去.不知如何是好了.
我用的工具是UE,就算是这个文件一点也不修改,只是保存一下,依然会令框架变形.
我的邮箱是lft59598@163.com,可以的话我把文件发给你.
@erdaoo
好的,你把文件发给我看看吧。
您好,非常感谢提供了这么好的主题。请问如何将目录改为两列显示?我的目录较多些,一列显示不太美观。谢谢。
@孟话英语
你可以试试这个插件:WP-MulticolLinks
谢谢指点@Beck,不过这个插件是针对链接表的,对目录好像不管用啊
@孟话英语
我明白了~ 对目录的话,需要你对css做一些调整才行。找到主题中style.css中的
/*category widget */ ul.list-cat li, .widget_categories li{ background: url(images/icons/mini-category.gif) no-repeat !important; padding-left: 20px !important; }将其修改成:
/*category widget */ ul.list-cat li, .widget_categories li{ background: url(images/icons/mini-category.gif) no-repeat !important; padding-left: 20px !important; float:left; width:97px; }保存后退出,再试着刷新你的页面。应该可以达到你想要的效果。
非常感谢,真的好了。
@Beck
还可以
Love the update with the space added between paragraphs; thanks!
For some reason the categories tab is expanded and at the top of the page, even when I turn it off?
Thanks!
@Matthew McNutt
There are two ways to trun it off:
1. Remove the code below from the sidebar.php in your template directory.
<div class="sidebar-box"> <h2>Categories</h2> <ul class="list-cat"> <?php wp_list_categories('show_count=0&title_li='); ?> </ul> </div>2. Find the code:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>in your sidebar.php, then move it after code:
<div id="sidebar-wrapper"> <div id="sidebar">Choosing what you like.
好热闹
Thanks! That did the trick (I did #1)!
By the way, I love that you added the twitter button!
Thank you for the theme! I use this theme for my blog and its awsome.
Good job and keep it updated….btw, please show me how to integrate gravatar into this them.
Thanks,
Vincent
@Vincent
It’s already integrated the gravater into the theme. If the gusets in your site hasn’t register from the http://en.gravatar.com/, you are able to set the gravater from your admin panel.
Got it, thanks!
One more question….is there a way to hide the text content and images on the index, archives, categories… Let say I just want it to show the post title only.
@Vincent
Remove the code:
<div class="content"> <?php the_content(__('Read more...', 'SthBlue')); ?> <div class="fixed"></div> </div>from index.php and archive.php in your template directory. Save the files and refresh your web page, you’ll find that only titles will be showed.
I Love your theme.
I made a page and some sub-pages, but the sub-pages don’t appear.
Does the theme support sub-pages?
thanks
Another newbie question for you -
Where is the menu to turn on/off the features in the right column (such as meta-data, search, and blogroll)?
thanks
博主你好!这个主题我非常的喜欢,现在也用上了,感谢~
想请问一下,文章正文的段落间距在哪修改呢,个人习惯间距宽一点呵呵,谢谢~
博主你好,该主题的LOGO图片要怎么才能显示呢?
@球犯
找到主题目录下sytle.css里面的
.post .content p { margin-bottom: 6px; }将6px改大就可以将段落间距增大了。
@球犯
我在主题目录下的style.css里为logo做了两种CSS,一种是文字的,一种是图片的。如果你想要用图片来代替文字,只需要将
/* text blog title */ #title a { text-decoration:none; color:#FFF; height:30px; display:block; font-family:"Trajan Pro"; letter-spacing:0; }这段代码删除或者注释掉,并且将
/* image blog title */ /* #title a { background:url(images/logo.png) no-repeat; text-decoration:none; color:#FFF; width:250px; height:50px; text-indent:-999em; display:block; } */这段代码的注释去掉。然后用你想要的logo.png替换主题目录下images文件夹里的logo.png。刷新你的主页就可以了。
@Beck
恩,谢谢!
刚刚在新开的一个BLOG上,装了!感觉挺好的!放段时间看有没BUG!谢谢QZ
不错,看着清爽,很喜欢。
你好,我在使用你的主题,很喜欢。特来请教一个问题,望不吝赐教。
因为我博客中用的图片宽度多为600,但是这样的话,页面宽度略显不够,我想增加左边的页面宽度至640,不知如何修改。谢谢。
Thanks. I used it (and modified) it for this site.
Maybe I can donate something?
@wessel
Thanks a lot! I think I do this just for fun, so if you got any good ideas for me will be a great appreciated.
Hi,
Any idea if your SthBlue theme will still work if I upgrade to the new WordPress 3.0?
Thanks,
Steve in Detroit
@Steve
It’s compatible with WordPress 3.0. You can check from here: http://demo.sthelse.com/wordpress/?wptheme=SthBlue.If you got any problem with this theme, please let me know, thanks!
I Love your theme.
thanks
hi,你好,我想问一下你的首页,创意无限,WordPress,关于,存档,留言板这些页面点击的时候,是怎么显示文章摘要的?
还有你那个阅读全文的按钮时怎么弄出来的哦?
另外还有,看到你摘要还有图片出来的?咋实现的?谢谢啊。
请问怎么实现页面显示摘要的布局啊?
that’s a very cool theme, thank you
@lemons
我就是在写文章的时候用了一个more标记,然后在页面上就只显示more之前的内容。阅读全文的按钮就是将这个more标记的css重写了一下。摘要的图片用了Highslide4WP这款插件。
最新文章的调用代码
相关文章的调用代码
我想在文章底部左右两列显示这两个内容,请问怎么在single.php那里用什么float left的代码呢?我不懂那个宽度是多少。谢谢。
@lemons
main的宽度是600px, 你如果想左右两列分别显示文章标题的话,用260px就差不多了,因为可能还需要左右的margin和padding的部分
博主好,试用了这个主题一段时间后,怎么Google的收录大幅减少了呢?Baidu的影响比较小。
@qingfei
刚又发现,百度的也减少了很多