Is_single not working properly in genesis

Please put your action add_action( ‘genesis_after_header’, ‘gp_page_header’); in if condition not whole code. if(is_single()){ add_action( ‘genesis_after_header’, ‘gp_page_header’); } Your updated code: if(is_single()) { add_action( ‘genesis_after_header’, ‘gp_page_header’); } function gp_page_header(){ $image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), ‘single-post-thumbnail’ ); ?> <div class=”post-hero” style=”background-repeat: no-repeat;background-size:cover;background-image: -webkit-radial-gradient(left top, circle cover, rgba(100, 66, 255, 0.9) 15%, rgba(0, 108, 255, 0.9) … Read more

Replace header with large image on home page only, using Genesis child theme

Well I got it working with a different approach but a good answer that provides insight why the approach in my question didn’t work will be accepted as the answer. I put this in functions.php for the child theme: add_action( ‘genesis_before_header’, ‘bob_gray_image’, 10 ); function bob_gray_image() { if ( is_front_page() ) { echo(‘<div class=”bobgrayimage”><img src=”https://wordpress.stackexchange.com/images/robert-c-gray-banner-maskbob-sharpen.jpg”></div>’); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)