內容簡介
此外掛會縮小評論清單,使評論標題(例如 “3 個評論”)成為顯示/隱藏評論的觸發器。
不需要更改模板,只需要了解 CSS selectors:
評論通常在帶有 “.commentlist” 類別的清單中,因此您可能不需要更改 “contents” 選項。
但您的佈景主題中的評論標題可能不同,因此您可能需要將 “trigger” 選項更改為與 “#comments-title” id 不同的選項。 使用您文章頁面上的 “檢查元素” 來判定您希望成為觸發器的元素的正確類別或 id。
外掛標籤
開發者團隊
原文外掛簡介
Minimizes the comment list and turns the comments title (eg. “3 Comments”) into a trigger to view/hide the comments.
Requires no template hacking, only a knowledge of CSS selectors:
The comments are usually inside a list with a class of “.commentlist” so you probably won’t need to change the option for the “contents”.
The comments title however may be different on your theme so you may have to change the “trigger” option to something different than the “#comments-title” id. Use “Inspect element” on your post’s page to deterime the correct class or id of the element you want to be the trigger.
