這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Dynamic Custom Header Replacement

外掛說明

This plugin allows the custom header image to be replaced by the featured image of the current post or page, if present. Otherwise the ‘default’ custom header image is used.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

常見問題集

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
How can I disable the regular featured image from displaying on a single post or page?

For the Twenty Seventeen theme you can change the header.php file to disable the regular featured image.
For example:
(lines 44 – 49)

    // If a regular post or page, and not the front page, show the featured image.
    //  if ( has_post_thumbnail() && ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) ) :
    //    echo '<div class="single-featured-image-header">';
    //    the_post_thumbnail( 'twentyseventeen-featured-image' );
    //    echo '</div><!-- .single-featured-image-header -->';
    //  endif;
What about foo bar?

N/A

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Dynamic Custom Header Replacement〉的開發相關工作。

參與者

變更記錄

1.2

  • Added width and height variables

1.1

  • Solved misconfigured variables

1.01

  • Changed function names to comply with policy

1.0

  • Initial release