[WordPress] 外掛分享: sidebarAutomizer

首頁外掛目錄 › sidebarAutomizer
WordPress 外掛 sidebarAutomizer 的封面圖片
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
3413 天前
最後更新
問題解決
WordPress 3.5.1+ v1.0 上架:2014-08-10

內容簡介

此外掛可以防止側邊欄高度超過內容高度,因此我們可以獲得同高度的內容和側邊欄。它基於 JavaScript,當側邊欄高度高於內容高度時,它會從側邊欄中刪除最後一個小工具。預設會與 Twenty Thirteen 主題一起工作,而獨特的設置方法可以選擇內容和側邊欄的 CSS 類,因此我們可以將其設置和使用在任何主題中,可能會使用不同的方式。

設置位於儀表板 / 設置 / sidebarAutomizer:

內容 CSS 類或 ID - 必須是內容 CSS 類或 ID,以定義側邊欄區域的最大高度。

側邊欄 CSS 類或 ID - 包含小工具的側邊欄元素的 CSS 類或 ID。

添加額外的側邊欄高度 - 在某些情況下,您希望側邊欄比內容高一些。在這種情況下,在此處添加像素數。

定義要移除的元素 - 它可以是aside、div或任何您的主題用於顯示單個小工具的HTML元素。錯誤的設置可能會導致前端響應不良的腳本行為。

外掛主頁:http://wordpress.transformnews.com/plugins/sidebarautomizer-equalize-content-and-sidebar-heights-664

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「sidebarAutomizer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Plugin will prevent sidebar height to overgrown content height and as a result we got a equalized content and sidebar heights. It is based on javascript that will remove last widget from sidebar while sidebar height is higher than content height. Settings are localized and by default work with Twenty Thirteen theme. Plugin unique settings approach to choose css class for content and sidebar allow us to set it up and use on any theme, and possibly in different ways that was originally meant to be used.
Settings are located in Dashboard / Settings / sidebarAutomizer:
Content Class or ID – This must be content CSS class or ID which will define max height for your sidebar area.
Sidebar Class or ID – CSS class or ID of the sidebar element that contains widgets.
Add extra height to Sidebar – In some cases you want your sidebar a bit higher than content. If that is the case add number of pixels here.
Define Element to remove – It can be aside, div, or whatever HTML element that your theme uses to display single widget. Wrong setting can cause unresponsive script behavior in front end.
Plugin Home: http://wordpress.transformnews.com/plugins/sidebarautomizer-equalize-content-and-sidebar-heights-664

延伸相關外掛

文章
Filter
Apply Filters
Mastodon