Php WP主题Genesis儿童-在主页上显示特色图像?
希望外面熟悉Genesis hooks的人能给我一个快速的解决方案。我对PHP不是很熟悉 在子主题的函数文件中,我有以下内容: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"
/** 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)更改为主页的特色图像。我应该在这里换什么
提前谢谢
基特卡