Basic Banner is a plugin that allows you to create and display banners in WordPress. This plugin creates custom post type called banner to store all the banners.
Displaying the Banner
You can display the banners by using basic banner widget. There is also a shortcode :
[basicbanner name="" class=""]
And a function for displaying banners anywhere in your theme :
<?php basic_banner_show( $name, $class = ''); ?>
Parameter
$name
is the banner slug and
$class
is the additional HTML classes for banner container. To get the banner object, you can use this function :
<?php $banner = basic_banner_get( $name ); ?>
Override Banner Template
- Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).
- Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.php).
- Modify banner.php file as you like.
Contribute on GitHub
You can contribute to this plugin via the
GitHub repository.
Automatic installation
Automatic installation is the easiest option as WordPress handles the file transfers itself.
- Log in to your WordPress dashboard.
- Go to Plugins > Add New and search "Basic Banner".
- Once you’ve found our plugin, you can install it by simply clicking "Install Now".
- Activate the plugin.
Manual installation
- Download the plugin via WordPress.org.
- Upload the ZIP file through the 'Plugins > Add New > Upload'.
- Activate the plugin.
- For more detail about manual installation you can read it here.
Updating
Automatic updates should work like a charm; as always though, ensure you backup your site just in case.