• Resolved YSMR

    (@ysmr)


    When I select a Featured Image in a Church theme post today, this featured image, no matter how I re-size or adjust, hijacks the default main page Header Image and completely obscures it.
    The featured image displays properly in the post as it should be, but unless I remove it, the default header image won’t display at all.
    I have never had this issue until the Theme and WP update today and all past posts display correctly.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Theme Author Han

    (@hwijaya)

    Guys sorry about the issue. New version of church theme (v 0.7.5) has been uploaded for review.

    The change was in church_banner function in functions.php.
    Since it might take a couple days before update notification appear on your WordPress admin, pou can download the latest version from the link above, or replace your church_banner function with .

    function church_banner() {
    
    ?>
    	<div class="banner">
    		<div class="wrap">
    			<?php
    			if ( !is_front_page() && get_theme_mod( 'church_header_home' ) ) {
    					echo '';
    			} else {
    				// get title
    				$id = get_option('page_for_posts');
    				if ( is_day() || is_month() || is_year() || is_tag() || is_category() || is_singular('post' ) || is_home() ) {
    					$the_title = get_the_title($id);
    				} else {
    					$the_title = get_the_title();
    				}
    
    				if (( 'posts' == get_option( 'show_on_front' )) && (is_day() || is_month() || is_year() || is_tag() || is_category() || is_singular('post' ) || is_home())) {
    						church_get_header_image();
    				} elseif(is_home() || is_singular('post' ) ) {
    					if ( has_post_thumbnail($id) ) {
    						echo get_the_post_thumbnail( $id, 'full' );
    					} else {
    						church_get_header_image();
    					}
    				} elseif ( has_post_thumbnail() && is_singular('page' ) ) {
    						the_post_thumbnail();
    				} else {
    					church_get_header_image();
    				}
    			}
    			?>
    		</div><!-- .wrap -->
      	</div><!-- .banner -->
    <?php
    }

    Let me know how it goes. Thanks & Happy New Year!

    Thank you so much for your response and this fix. I went ahead and downloaded this new Church Theme (v 0.7.5) and installed it. I then added a featured image to my last post and … BINGO … the issue’s gone. The featured image no longer replaces the header image on my home page. Thank you so much, Han !

    Oddly, when I upgraded to .7.5, my dk image rotator widget stopped working. I use it to rotate header images in the main page by putting the widget in the banner area ( https://www.ankenyucc.org ). I’m not 100% sure it’s related, but given the change was in the banner….

    Thanks, Han, for such an excellent theme. I appreciate the work you have done for all of us in low-budget church land.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Sudden header Image Issue in WP 4.4’ is closed to new replies.