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 . 請輸入代碼如下所示(以驗證您是否人類) ,然後單擊提交評論