Title: Dynamic Custom Header Replacement
Author: enteractie
Published: <strong>2017 年 3 月 24 日</strong>
Last modified: 2017 年 6 月 26 日

---

搜索插件

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

![](https://ps.w.org/dynamic-custom-header-replacement/assets/icon-256x256.jpg?rev
=1623961)

# Dynamic Custom Header Replacement

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

[下载](https://downloads.wordpress.org/plugin/dynamic-custom-header-replacement.zip)

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

 [支持](https://wordpress.org/support/plugin/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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Dynamic Custom Header Replacement」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dynamic-custom-header-replacement)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/dynamic-custom-header-replacement/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/dynamic-custom-header-replacement/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/dynamic-custom-header-replacement/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/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

## 额外信息

 *  版本 **1.2**
 *  最后更新：**9 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/dynamic-custom-header-replacement/)
 * 标签
 * [custom header](https://cn.wordpress.org/plugins/tags/custom-header/)[featured image](https://cn.wordpress.org/plugins/tags/featured-image/)
   [header-image](https://cn.wordpress.org/plugins/tags/header-image/)[twenty-seventeen](https://cn.wordpress.org/plugins/tags/twenty-seventeen/)
 *  [高级视图](https://cn.wordpress.org/plugins/dynamic-custom-header-replacement/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/dynamic-custom-header-replacement/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dynamic-custom-header-replacement/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/dynamic-custom-header-replacement/)

## 捐助

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

 [ 捐助此插件 ](https://cn.wordpress.org/plugins/dynamic-custom-header-replacement/?output_format=md#)