Title: Modifying PHP in child theme
Last modified: August 31, 2016

---

# Modifying PHP in child theme

 *  [wilddogltd](https://wordpress.org/support/users/wilddogltd/)
 * (@wilddogltd)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/modifying-php-in-child-theme-1/)
 * I have set up a child theme for Refur and I am stuck on a few modifications.
 * 1) the theme has a php for a page header image for sub pages. I want to try to
   replace this with a different pages header image for each page, but despite all
   my best efforts (including modifying the ‘custom-header.php’ file in the parent
   theme and adding a new file with the same name to the child theme), I cannot 
   get this to work. Can you please let me know how to achieve this change? Which
   files to edit?
 * 2) the featured image on the blog seems to be resized to 210*710px. Despite adding
   some CSS to the pages in questions I cannot seem to alter this image so that 
   the featured image resizes to a more suitable ratio for the images (16×9)
 * The site I am working on is our new website here:
 * [http://wordpress2015.wilddogworld.com/wordpress/](http://wordpress2015.wilddogworld.com/wordpress/)
 * Thanks for any help.

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

 *  [noahcryns](https://wordpress.org/support/users/noahcryns/)
 * (@noahcryns)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/modifying-php-in-child-theme-1/#post-7245710)
 * 1. There are plugins that allow for this kind of “different header per page”
   –
   You could also create “custom page templates” for each page…..
 * Probably more options here.
 * 2. This link may help you get there.
    [https://slocumthemes.com/2014/05/adjust-set-size-featured-image-size-wordpress/](https://slocumthemes.com/2014/05/adjust-set-size-featured-image-size-wordpress/)
 *  Thread Starter [wilddogltd](https://wordpress.org/support/users/wilddogltd/)
 * (@wilddogltd)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/modifying-php-in-child-theme-1/#post-7245767)
 * Thanks.
 * I have tried using a plugin to do this, but the theme’s code overrides the changes
   when you refresh the screen.
 * It would be really useful if teFox could come on and help with this issue. Adding
   an option to allow for a different header image on each page and also to enable
   users to adjust the height of the image on screen should be a fairly basic requirement
   for most themes I would have thought. Also the ability to add a slider to the
   header area would be nce.
 * It is frustrating when every developer decides to reinvent the wheel for every
   theme! it is an issue with some many WP themes – time an again you run into very
   basic problems!

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

The topic ‘Modifying PHP in child theme’ is closed to new replies.

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

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [wilddogltd](https://wordpress.org/support/users/wilddogltd/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/modifying-php-in-child-theme-1/#post-7245767)
 * Status: not resolved