Linux 软件免费装
Banner图

Banner Image for post and page

开发者 logicrays
priteshm
更新时间 2026年8月21日 21:01
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

admin custom post type cpt header image banner image

下载

1.3 1.3.1 1.0 1.1 1.2

详情介绍:

Banner Image is a great plugin to implement custom banner Image for posts, pages, and custom post types (CPT). You can set images easily and later can manage CSS from your theme. it’s totally free. For more features Please contact us at Logicrays If you like this plugin Please rate us :)

屏幕截图:

  • screenshot-2.png
  • screenshot-3.png
  • screenshot-4.png

常见问题:

How do I add a banner image to my post or page?

Go to the WordPress editor for any post or page. Look for the "Banner Image" meta box in the sidebar. Click "Choose or Upload an Image" to select or upload your image from the Media Library.

How do I enable the banner image metabox on Custom Post Types (CPT)?

Go to the "Banner Image" settings menu in your WordPress admin dashboard, select the Custom Post Types where you want to show the metabox, and click "Save Settings".

How do I display the banner image on the frontend?

You can place the [BANNER-IMG] shortcode inside the content editor of the post or page. Alternatively, to display it directly in your theme templates (like header.php), use the PHP code: <?php echo do_shortcode('[BANNER-IMG]'); ?>.

Can I set a different banner image for each page?

Yes. The banner image is post/page-specific. The plugin retrieves the image assigned specifically to the post or page currently being viewed.

How can I customize the appearance of the banner image?

The plugin wraps the image in a div with the class banner-image. You can customize its look by adding CSS to your theme's stylesheet. For example: .banner-image img { width: 100%; height: auto; border-radius: 8px; }

What happens if a post or page doesn't have a banner image?

If no image is uploaded or chosen for a post/page, the shortcode will output nothing, ensuring your page layout remains clean without displaying broken images.

更新日志:

1.3.1 1.3 1.2 1.1