Title: Raindrops Update &#8211; header problem
Last modified: August 22, 2016

---

# Raindrops Update – header problem

 *  Resolved [Cromerty](https://wordpress.org/support/users/cromerty/)
 * (@cromerty)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/)
 * Hi Nobita – Just updated to the latest version of raindrops and the header height
   seems to have been shortened. (firefox).
 * Thanks
 * alteregovoices.com

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901275)
 * Hi Cromerty
 * I change header image script newest version.
 * Your header image size is 752X157 but page width 850px too small
 * Prease reset header image , width 850px;
 * Thank you.
 *  Thread Starter [Cromerty](https://wordpress.org/support/users/cromerty/)
 * (@cromerty)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901299)
 * Hi – I’ve done that – but it still doesn’t look ok.
 * The picture is 850 x 156 pixels
 *  Thread Starter [Cromerty](https://wordpress.org/support/users/cromerty/)
 * (@cromerty)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901300)
 * Hi Nobita – I’ve re-drawn my header to fit. I’ll set this to resolved.
 *  [Yak Chum](https://wordpress.org/support/users/yak-chum/)
 * (@yak-chum)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901383)
 * I like the old header resolution as I have 25 of them to fit. The Original header
   size is what I use. Reverted to old theme. Can you post change logs on theme 
   changes from now on??
 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901384)
 * Hi Yak Chum
 * You have any difficulty in the header image?
 *  [Yak Chum](https://wordpress.org/support/users/yak-chum/)
 * (@yak-chum)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901386)
 * Hello Nobita,
    Yes new header size not default 1919 x 400. Understanding you 
   have changed default header image size in latest version of your raindrops theme.
   I Thought that worked better for this theme. Personally i like the original header
   size I tried to step back the style CSS to 1.276 but that hasn’t seemed to repair
   the header on my homepage rather its missing now.
 * Can you create code to allow custom size for header image?
 *  [Yak Chum](https://wordpress.org/support/users/yak-chum/)
 * (@yak-chum)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901388)
 * Appears my Child theme does not work with update.
 * Website looks broken.
 * [http://www.theplastichull.net](http://www.theplastichull.net)
 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901389)
 * Raindrops theme, there was a bug when a large image has been set.
 * functions.php line:570
 *     ```
       if( $page_type_check == 'doc3' ) {
       			$max_width = raindrops_warehouse_clone( 'raindrops_fluid_max_width' );
       			$width = absint( raindrops_detect_header_image_size_clone(  'width' ) );
   
       			if( $width !== $max_width ) {
       				$orrection_amount = $width / $max_width;
   
       				return round( $height * $orrection_amount );
       			}
       			return $height;
   
       		}
       ```
   
 * Change from $width !== $max_width to $width < $max_width
 *     ```
       if( $page_type_check == 'doc3' ) {
       			$max_width = raindrops_warehouse_clone( 'raindrops_fluid_max_width' );
       			$width = absint( raindrops_detect_header_image_size_clone(  'width' ) );
   
       			if( $width < $max_width ) {
       				$orrection_amount = $width / $max_width;
   
       				return round( $height * $orrection_amount );
       			}
       			return $height;
   
       		}
       ```
   
 * I think this change makes correctly work
 * Even after this change, if you need further adjustment, you can use the following
   filter.
 *     ```
       add_filter( 'raindrops_header_image_width', 'revert_raindrops_header_image_width' );
       add_filter( 'raindrops_header_image_height', 'revert_raindrops_header_image_height' );
   
       function revert_raindrops_header_image_width( $return_value ) {
   
       	return 1280;
       }
       function revert_raindrops_header_image_height( $return_value ) {
   
       	return 573;
       }
       ```
   
 * > Appears my Child theme does not work with update.
   > Website looks broken.
 * broken means background issue ?
 * Affect setting in the background does not conduct…
 * causing app error of Facebook with my chrome
 * Please a little more, Could you clarify the problem
 * thank you for your patience
 *  [Yak Chum](https://wordpress.org/support/users/yak-chum/)
 * (@yak-chum)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901391)
 * Nobita,
 * Sorry yes I meant background issue not working. Only on home page. Background
   works fine under posts and pages.
 * Header seems to not fix with functions.php code changes.
 * For filter shall I edit in child theme or under raindrops theme?
 * Thank you
 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901392)
 * Sorry!
 * I’m recheck using same size your site image
 *     ```
       if( $width < $max_width ) {
       				$orrection_amount = $width / $max_width;
   
       				return round( $height * $orrection_amount );
       			}
       			if( $width > $max_width ) {
       				$orrection_amount = $max_width / $width;
   
       				return round( $height * $orrection_amount );
       			}
       ```
   
 * please add
 *     ```
       if( $width > $max_width ) {
       				$orrection_amount = $max_width / $width;
   
       				return round( $height * $orrection_amount );
       			}
       ```
   
 * Now, I can Fix
 * filter works child theme ( I’m checked and works ).
 * Very Sorry.
 *  [Yak Chum](https://wordpress.org/support/users/yak-chum/)
 * (@yak-chum)
 * [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901394)
 * Still not working i have added the code you provided to functions.php in child
   theme.
 * Here were errors from server.
 *     ```
       [19-Mar-2015 21:39:46 UTC] PHP Strict Standards:  Only variables should be passed by reference in /home2/burninga/public_html/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_installer.php on line 192
       [19-Mar-2015 21:39:46 UTC] PHP Notice:  Trying to get property of non-object in /home2/burninga/public_html/wp-includes/query.php on line 4349
       [20-Mar-2015 04:30:48 UTC] PHP Parse error:  syntax error, unexpected end of file in /home2/burninga/public_html/wp-content/themes/raindrops/functions.php on line 9865
       ```
   
 * Problems:
    1. No Header on home page. 2. No background on Home page (IE) Ok in
   chrome 3. Wrong header size in post pages

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Raindrops Update – header problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/raindrops/1.700/screenshot.png)
 * raindrops
 * [Support Threads](https://wordpress.org/support/theme/raindrops/)
 * [Active Topics](https://wordpress.org/support/theme/raindrops/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/raindrops/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/raindrops/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [Yak Chum](https://wordpress.org/support/users/yak-chum/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/raindrops-update-header-problem/#post-5901394)
 * Status: resolved