WordPress default theme (Kubrick based) does not display sidebar on single post page. WordPress所默认的主题(库布里克为基础的)不显示工具栏就单一帖子页。 However with a minor change in the theme you can make it to display sidebar.不过,与未成年人的变化为主题,您可以使它显示工具栏。 This works in the default theme of WordPress 2.0 and 1.5.x.这个工程在预设的主题, WordPress的2.0和1.5.x.

Login as admin.登录作为管理员。
Click on Presentation / Theme Editor / Single Post.按一下介绍/主题编辑器/单后。
Change the second line from:改变从第二行:


to

Then add this line :然后添加这条路线:

just before the last line containing:只是之前的最后一行,载有:

You are done!你这样做!

Now you will have a sidebar, identical to the front page, on all your post pages.现在,您将有一个工具栏,相同的头版上,您所有的帖子页。

Note: This supercedes my注意:此取代我 earlier post较早前后 on this sidebar problem, as this solution is without any在此工具栏的问题,这个解决办法是在没有任何 side-effect副作用 , unlike my previous solution.不像我以前的解决办法。


You may also like to read您也可以想读

12 Responses to “How To Display Sidebar in Single Post in WordPress 1.5 / 2.0 Default Kubrick Theme” 12回应“如何显示工具栏,在单一的工作地点在WordPress 1.5 / 2.0的默认库布里克的主题是”

  1. 评论 How to have sidebar enabled in WordPress 1.5 Kubrick(modified) Post pages -Java and Web Software Blog 如何将工具栏,使在WordPress 1.5库布里克(修改)后的页面- Java和Web软件博客 Says:说:

    [...] [...] [ … … ] [ … … ]

  2. 评论 kcyap kcyap Says:说:

    Hi there, i had just reopen the wordpress 2.0 theme design competition which will start very soon.喜在那里,我刚刚重开的WordPress 2.0主题设计比赛,这将很快开始。 I hope you could help me to spread the news.我希望你能帮助我,散布消息。 Im offering a lot of gadgets as the prizes and i wish will there be a lot of competitors.即时通讯提供了很多的小工具,作为奖品,我想会有很多的竞争者。

    Ive put the entry as a sticky topic on my blog and only will be take down after the competition had been complete.香港专业教育学院提出的入境作为一个棘手的题目,我的博客,只有将采取下跌后,竞争已完成。 For direct link to my Wordpress 2.0 Theme Design Competition, this is the address直接链接到我的WordPress 2.0主题设计比赛,这是地址

    http://kcyap.com/?p=47

    I hope you could set a trackback to my entry so i know you had help me to blog about this.我希望你能订出一个跟踪我的文字,所以我知道你曾帮助我博客这一点。

    Thanks in advanced.感谢在先进的。

  3. 评论 Angsuman Chakraborty 日由Angsuman Chakraborty Says:说:

    You got it.你得到它。
    WordPress 2.0 Theme Competition Announced在WordPress 2.0的主题,比赛结果公布

  4. 评论 Jason Litka 贾森litka Says:说:

    You rock!你岩! I’ve been trying to figure this out since I started my blog last weekend.我一直在想的数字,这一点,自从我开始我的博客上周末。

  5. 评论 Mad Kane 疯牛病凯恩 Says:说:

    Thanks so much.感谢这么多。 You are a life-saver.你是一个生命的保护。 I have two blogs and have been trying to add the sidebar to my single pages foreover and have been tearing my hair out.我有两个博客,并已尝试添加工具栏,以我的单页foreover ,并已撕裂我的头发。 Thanks for the wide to narrow fix … just in time before I lost the last of my hair.感谢广泛,以缩小修复…只是在时间之前,我失去了最后,我的头发。 : )

  6. 评论 Ivan Dulin 伊万dulin Says:说:

    If you want your sidebar with background, as on main page, you also need fix this string in header.php :如果您希望您的工具栏与背景下,作为主网页上,您还需要解决此字符串在header.php
    “if ( !$withcomments && !is_single() ) {” - we need “if ( !$withcomments ) {”. “如果( !美元withcomments & & ! is_single ( ) ) ( ” -我们需要: “如果( !美元w ithcomments) ( ” 。 Enjoy!享受!

  7. 评论 Kathiroly Raj kathiroly raj Says:说:

    Hi.嗨。 Really thank you so much for this.真的十分感谢你这一点。 I have been looking for this for a long time.我一直在寻找这相当长的时间。 Thanks a zillion.感谢zillion 。 : )

  8. 评论 Jao Moragoat in Thailand 饶moragoat在泰国 Says:说:

    Much gratitude for the quick and simple fix.很多感谢的快速和简单的修补程序。 BTW, for wordpress 2.2, the file to modify is single.php.的BTW ,在WordPress 2.2 ,该文件修改是single.php 。

    Cheers!干杯!

  9. 评论 meraTechExplorer meratechexplorer Says:说:

    Hi,嗨,

    Finally my \\\” How to display sidebar in individual post pages on kubrick theme \\\” search ends with your trick.最后我\ \ \ “如何显示工具栏在个别帖子页就库布里克主题\ \ \ ”搜索结束与您的伎俩。 Ivan Dulin fix really helps.伊万dulin修复真的有帮助。

    Here is my Weblog:这里是我的博客: http://meratechexplorer.com/microsoft/news

  10. 评论 Shaun 肖恩 Says:说:

    Thanks!谢谢! This was very useful.这是非常有用的。

  11. 评论 SP Gass sp燃气 Says:说:

    Thanks for the simple, effective solution!感谢简单,有效的解决办法! In addition to adding the sidebar, your solution also appears to have corrected a title centering issue I was having with long titled posts under the default style.此外,加入工具栏,您的解决方案似乎也已经纠正了一个标题,围绕问题,我是有长期的标题下的员额的预设样式。 Thanks again!!再次感谢!

  12. 评论 Ben Hinton 本寒春 Says:说:

    Thanks for posting this useful tip.感谢发布这个有用的提示。 This works for me using WordPress 2.5.这个工程我使用的WordPress 2.5 。

    Cheers!干杯!

    Ben

  13. 评论 SigePa sigepa Says:说:

    Thank you.谢谢您。 I was completely lost on this till I found your cure for the missing sidebar.我是完全丧失了对这个至今我发现您的治愈率为失踪的工具栏。

  14. 评论 John 约翰 Says:说:

    Thanks this realy helped.感谢这真的有帮助。

Looking forward to hear your thoughts.期待着听到您的想法。



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment . 请输入代码如下所示(以验证您是否人类) ,然后单击提交评论