WordPress Manual Content Units v2 WP Registry grade B. Medium-severity findings · 1 findingWP RegistryMedium-severity findings · 1 findingOpen the reportB
v2 of our banner plugin yeeeeeeeah
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/benjaminmedia/wp-contentunits/archive/refs/heads/master.zipOn Packagist as benjaminmedia/wp-content-units:
composer require benjaminmedia/wp-content-unitswp-manual-cu
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
Releases
Newest 25 of 30 recorded releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.