Title: Basic Banner
Author: hisman
Published: <strong>2017 年 10 月 28 日</strong>
Last modified: 2021 年 4 月 26 日

---

搜索插件

![](https://ps.w.org/basic-banner/assets/banner-772x250.png?rev=1800292)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/basic-banner/assets/icon-256x256.png?rev=1800292)

# Basic Banner

 作者：[hisman](https://profiles.wordpress.org/hisman/)

[下载](https://downloads.wordpress.org/plugin/basic-banner.1.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/basic-banner/#description)
 * [评价](https://cn.wordpress.org/plugins/basic-banner/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/basic-banner/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/basic-banner/#developers)

 [支持](https://wordpress.org/support/plugin/basic-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 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

 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](https://github.com/hisman/basic-banner).

## 屏幕截图

[⌊Create a new banner⌉⌊Create a new banner⌉[

Create a new banner

## 安装

#### Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself.

 1. Log in to your WordPress dashboard.
 2. Go to **Plugins > Add New** and search **“Basic Banner”**.
 3. Once you’ve found our plugin, you can install it by simply clicking **“Install 
    Now”**.
 4. Activate the plugin.

#### Manual installation

 1. Download the plugin via WordPress.org.
 2. Upload the ZIP file through the **‘Plugins > Add New > Upload’**.
 3. Activate the plugin.
 4. For more detail about manual installation [you can read it here](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

#### Updating

Automatic updates should work like a charm; as always though, ensure you backup 
your site just in case.

## 评价

![](https://secure.gravatar.com/avatar/659cc09d1504711d19a2a4cd74f2523fed619bb83dadfc6efa0ef05bf1184187?
s=60&d=retro&r=g)

### 󠀁[best simple plugin](https://wordpress.org/support/topic/best-simple-plugin/)󠁿

 [asepnoerjaman](https://profiles.wordpress.org/asepnoerjaman/) 2021 年 8 月 13 
日

I love this plugin because it is so simple, but it does what it is supposed to do.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/basic-banner/reviews/)

## 贡献者及开发者

「Basic Banner」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ hisman ](https://profiles.wordpress.org/hisman/)

[帮助将「Basic Banner」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/basic-banner)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/basic-banner/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/basic-banner/)，或通过[RSS](https://plugins.trac.wordpress.org/log/basic-banner/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/basic-banner/)。

## 更新日志

#### 1.1.3

 * Support WordPress 5.7.
 * Fix shortcode errors.

#### 1.1.2

 * Fix undefined property in banner object.

#### 1.1.1

 * Fix undefined index when creating a new banner.
 * Change banner image size in admin to full size.

#### 1.1.0

 * Custom html classes for banner container.
 * Show thumbnail & name in banner list.
 * Add widget for displaying the banners.
 * Add shortcode for displaying the banners.

#### 1.0.0

 * Initial Version.

## 额外信息

 *  版本 **1.1.3**
 *  最后更新：**5 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 4.5 或更高版本 **
 *  已测试的最高版本为 **5.7.15**
 *  语言
 * [English (US)](https://wordpress.org/plugins/basic-banner/)
 * 标签
 * [banner](https://cn.wordpress.org/plugins/tags/banner/)
 *  [高级视图](https://cn.wordpress.org/plugins/basic-banner/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/basic-banner/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/basic-banner/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/basic-banner/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/basic-banner/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/basic-banner/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/basic-banner/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/basic-banner/reviews/)

## 贡献者

 *   [ hisman ](https://profiles.wordpress.org/hisman/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/basic-banner/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/hismansaputra)