benjaminmedia/wp-content-units

一个允许您手动将特定内容单元添加到WordPress的插件

安装: 463

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 11

分支: 0

公开问题: 0

类型:wordpress-plugin

v2.3 2016-10-28 13:30 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选择器元素