Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WP主题Genesis儿童-在主页上显示特色图像?_Php_Wordpress_Genesis - Fatal编程技术网

Php WP主题Genesis儿童-在主页上显示特色图像?

Php WP主题Genesis儿童-在主页上显示特色图像?,php,wordpress,genesis,Php,Wordpress,Genesis,希望外面熟悉Genesis hooks的人能给我一个快速的解决方案。我对PHP不是很熟悉 在子主题的函数文件中,我有以下内容: /** Add the featured image section */ add_action( 'genesis_after_header', 'full_featured_image' ); function full_featured_image() { if ( is_front_page() ) { echo '<div id="full-image"

希望外面熟悉Genesis hooks的人能给我一个快速的解决方案。我对PHP不是很熟悉

在子主题的函数文件中,我有以下内容:

/** Add the featured image section */
add_action( 'genesis_after_header', 'full_featured_image' );
function full_featured_image() {
if ( is_front_page() ) {
echo '<div id="full-image"><img src="'. get_stylesheet_directory_uri() . '/images/home-header.jpg" /></div>';
}
}
/**添加特色图像部分*/
添加_动作('genesis_在_标题之后,'full_特色_图像');
功能全功能特色图片(){
如果(是首页()){
回声';
}
}
我只想将首页图像从静态图像(images/home header.jpg)更改为主页的特色图像。我应该在这里换什么

提前谢谢

基特卡