跳到内容

Basic Banner

v1.2.0

hisman · 2017年10月28日 上架

Allows you to create and display banners in WordPress.

正在使用
50+
评分
5.0 / 5
累计下载
2,643
最近更新
2026年9月24日
1 条评价需要 WordPress 4.5+已测试到 7.1.5

贡献者

截图

Create a new banner
Create a new banner

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 block. 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

  1. Locate folder template in Basic Banner plugin folder (wp-content/plugins/basic-banner/template).
  2. Copy banner.php file to your theme folder under the folder called basic-banner (wp-content/themes/your-theme/basic-banner/banner.php).
  3. Modify banner.php file as you like.

Contribute on GitHub

You can contribute to this plugin via the GitHub repository.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums