benjaminmedia / wp-content-units
A plugin that allows you to manually add Specific Content Units to WordPress
Installs: 463
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 0
Type:wordpress-plugin
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-11-07 23:09:41 UTC
README
a plugin that allows you to manually add Specific Content Units to WordPress
##Customization
change the width of the container (width between the banners)
.bonnier-banner-container.sticky { width: 930px; }
change offset from the top:
.bonnier-banner-container.sticky .banner { top: 700px; }
To only change offset on the left/right:
.bonnier-banner-container.sticky .left .banner { top: 200px; }
##Shortcode If you want to manually add a banners somewhere, you can use the shortcode.
[banner sticky="true" cu="xxxxxx" offset="" parent-container=""]
sticky = (bool) If set to true, the banner will remain on screen while scrolling
cu = Content Unit number
offset = top Offset in pixels where the banner will start to be sticky (default = calculates the offset itself)
parent-container = jQuery selector element on which the sticky banner will scroll inside