跳到内容

sidebarAutomizer

v1.0

damiroquai · 2014年8月11日 上架

This little plugin will remove last widget or widgets from sidebar if content area height is smaller than sidebar area height.

正在使用
30+
评分
5.0 / 5
累计下载
4,328
最近更新
2016年12月8日
1 条评价需要 WordPress 3.5.1+已测试到 4.7.40

贡献者

截图

screenshot-1.png shows administration settings.
screenshot-1.png shows administration settings.
screenshot-2.png shows plugin in action, left is before and right is after activation.
screenshot-2.png shows plugin in action, left is before and right is after activation.

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums