Child Theme Edit Header Code Issue
-
Hi Guys my child theme has been working fine up till last week.
It just stopped doing the override all of a suddenif ( ! function_exists( 'simplecatch_headerdetails' ) ) : /** * Get the header logo Image from theme options * * @uses header logo * @get the data value of image from theme options * @display Header Image logo * * @uses default logo if logo field on theme options is empty * * @uses set_transient and delete_transient */ function simplecatch_headerdetails() { //delete_transient( 'simplecatch_headerdetails' ); global $simplecatch_options_settings; $options = $simplecatch_options_settings; if ( ( !$simplecatch_headerdetails = get_transient( 'simplecatch_headerdetails' ) ) && ( !empty( $options[ 'featured_logo_header' ] ) || empty( $options[ 'remove_site_title' ] ) || empty( $options[ 'remove_site_description' ] ) ) ) { echo '<!-- refreshing cache -->'; $simplecatch_headerdetails = '<div class="logo-wrap">'; if( empty ($options[ 'remove_header_logo' ] ) ) { $simplecatch_headerdetails .= '<div id="site-logo"><a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'display' ) ).'">'; // if not empty featured_logo_footer on theme options if ( !empty( $options[ 'featured_logo_header' ] ) ) : $simplecatch_headerdetails .= '<img src="'.esc_url( $options[ 'featured_logo_header' ] ).'" alt="'.get_bloginfo( 'name' ).'" />'; else: // if empty featured_logo_footer on theme options, display default Header Logo $simplecatch_headerdetails .='<img src="'. get_template_directory_uri().'/images/logo-head.png" alt="logo" />'; endif; $simplecatch_headerdetails .= '</a></div>'; } if( empty( $options[ 'remove_site_title' ] ) || empty( $options[ 'remove_site_description' ] ) ) { $simplecatch_headerdetails .= '<div id="site-details">'; if ( empty( $options[ 'remove_site_title' ] ) ) { $simplecatch_headerdetails .= '<h1 id="site-title"><a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'display' ) ).'">'.esc_attr( get_bloginfo( 'name', 'display' ) ).'</a></h1>'; } if ( empty( $options[ 'remove_site_description' ] ) ) { $simplecatch_headerdetails .= '<h2 id="site-description">'.esc_attr( get_bloginfo( 'description' ) ).'</h2>'; } $simplecatch_headerdetails .= '</div><!-- .site-details -->'; } /*My custom code starts here*/ $simplecatch_headerdetails .= '<div class="sponsor-us">'; $simplecatch_headerdetails .= '<a alt="Cork City Skatepark Bolts Skateshop" title="Cork City Skatepark Bolts Skateshop" href="https://www.facebook.com/CorkCitySkatepark">'; $simplecatch_headerdetails .= '<img alt="Cork City Skatepark Bolts Skateshop" src="http://www.skateeire.ie/wp-content/uploads/2013/12/sponsorlogontranstopalign.png" />'; $simplecatch_headerdetails .= '</a>'; $simplecatch_headerdetails .= '</div><!-- .sponsor-us-->'; /*My custom code ends here here*/ $simplecatch_headerdetails .= '</div><!-- .logo-wrap -->'; set_transient( 'simplecatch_headerdetails', $simplecatch_headerdetails, 86940 ); } echo $simplecatch_headerdetails; } endif; // simplecatch_headerdetailsI have the child theme set up and custom style is working but my simplecatch_headerdetails.php file inside the functions folder does not seem to be kicking in.
Can someone please help.
The topic ‘Child Theme Edit Header Code Issue’ is closed to new replies.
