benjaminmedia / wp-content-units
一个允许您手动将特定内容单元添加到WordPress的插件
v2.3
2016-10-28 13:30 UTC
Requires
- composer/installers: ~1.0.6
- dev-master
- v2.3
- v2.3-beta-5
- v2.3-beta-4
- v2.3-beta-3
- v2.3-beta-2
- v2.3-beta
- v2.3-alpha
- v1.9.7
- v1.9.6
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9
- v1.8
- v1.7
- v1.6
- v1.5
- v1.4
- v1.3
- v1.2
- v1.0
- v0.9
- v0.8
- v0.7
- v0.6
- v0.5
- v0.4
- v0.3
- v0.2
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1
- dev-add-sticky-functionality-again
- dev-development
- dev-re-add-styling-for-non-shell
- dev-feature-fix-second-middle-hooks
- dev-feature-banner-numbers
- dev-refactor
This package is auto-updated.
Last update: 2024-09-07 22:50:09 UTC
README
一个允许您手动将特定内容单元添加到WordPress的插件
##自定义
更改容器宽度(横幅之间的宽度)
.bonnier-banner-container.sticky { width: 930px; }
更改顶部偏移量
.bonnier-banner-container.sticky .banner { top: 700px; }
仅更改左右偏移量
.bonnier-banner-container.sticky .left .banner { top: 200px; }
##短代码 如果您想手动添加横幅到某个地方,可以使用短代码。
[banner sticky="true" cu="xxxxxx" offset="" parent-container=""]
sticky = (bool) 如果设置为true,横幅将在滚动时保持在屏幕上
cu = 内容单元编号
offset = 横幅开始粘性的顶部像素偏移量(默认 = 自动计算偏移量)
parent-container = 粘性横幅将在其中滚动的jQuery选择器元素