Hello! I’m very new at messing around with WordPress, not trying to ruin anyone’s day here with my questions, but I’m not really sure how to go about this.
I would like to change the header height. It’s 180px but I’d prefer 150.
This is in functions.php:
// The height and width of your custom header. You can hook into the theme’s own filters to change these values.
// Add a filter to coraline_header_image_width and coraline_header_image_height to change these values.
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘coraline_header_image_width’, 990 ) );
define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘coraline_header_image_height’, 180 ) );
I’m trying to understand what a hook or filter are. (Changing the value right there doesn’t do anything.) Also, all the documentation I’ve looked at so far says I need to make a new functions.php in the child theme folder…but when I drop one in, the whole site breaks. Grey screen, can’t do nothing. I don’t know why. Even when the functions.php file in the child theme directory only contains code regarding the header image, the site just won’t load.
At the very top of the functions.php file is this:
/** Tell WordPress to run coraline_setup() when the ‘after_setup_theme’ hook is run. */
add_action( ‘after_setup_theme’, ‘coraline_setup’ );
if ( ! function_exists( ‘coraline_setup’ ) ):
* Sets up theme defaults and registers support for various WordPress features.
* To override coraline_setup() in a child theme, add your own coraline_setup to your child theme’s
* functions.php file.
But again, I don’t know how to build the child theme functions.php in such a way that it doesn’t break the site.
Any assistance would be very much appreciated!!! Thanks!
- The topic ‘[Theme: Coraline] Changing Header Height, Child Theme Functions.php’ is closed to new replies.