Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjaminmedia/wp-manual-cu
a plugin that allows you to manually add Specific Content Units to WordPress
https://github.com/benjaminmedia/wp-manual-cu
Last synced: 28 days ago
JSON representation
a plugin that allows you to manually add Specific Content Units to WordPress
- Host: GitHub
- URL: https://github.com/benjaminmedia/wp-manual-cu
- Owner: BenjaminMedia
- Created: 2015-05-13T08:43:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-15T08:06:42.000Z (almost 9 years ago)
- Last Synced: 2024-12-02T23:35:14.862Z (about 1 month ago)
- Language: JavaScript
- Size: 71.3 KB
- Stars: 1
- Watchers: 15
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-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)
```css
.bonnier-banner-container.sticky {
width: 930px;
}
```change offset from the top:
```css
.bonnier-banner-container.sticky .banner {
top: 700px;
}
```To only change offset on the left/right:
```css
.bonnier-banner-container.sticky .left .banner {
top: 200px;
}
```##Shortcode
If you want to manually add a banners somewhere, you can use the shortcode.```html
[banner sticky="true" cu="xxxxxx" offset="" parent-container=""]
```
sticky = (bool) If set to true, the banner will remain on screen while scrollingcu = 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