• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WP Engine Genesis Themes

WP Engine Genesis Themes

Resources and help for the Genesis community

  • Need Help?
You are here: Genesis Framework / How to Set the Custom Header Function

How to Set the Custom Header Function

The WordPress® custom header function makes it possible for you to upload a header graphic, or logo, for your site.1 The heavy lifting of adding the custom header function is built into Genesis and only needs to be activated on the child theme level.

Many of our child themes already include the code necessary to activate the custom header function.

To activate the custom header function in your Genesis child theme (if it’s not already included), you’ll need to edit the  functions.php file.

Learn how to edit your child theme files using FTP.

First, locate the following line of code in your functions.php file:

require_once(TEMPLATEPATH.’/lib/init.php’);

The code you’ll add to activate the custom header function must be placed somewhere after this line of code.

Next, check to see if your functions.php file contains this closing code:

?>

If it does, the code you’ll add to activate the custom header function must be placed somewhere before this closing code.

Finally, add the following code (somewhere between the lines mentioned above) to activate the custom header function in your child theme:

Custom Header Parameters

  • ‘width’: integer, default is 960
  • ‘height’: integer, default is 80
  • ‘textcolor’: hexadecimal value with no leading #, default is 333333
  • ‘no_header_text’: boolean, default is false
  • ‘header_image’: path/to/image.png, defaults to child theme’s images/header.png
  • ‘header_callback’: function name, default is genesis_custom_header_style
  • ‘admin_header_callback’: function name, default is genesis_custom_header_admin_style.

Primary Sidebar

Genesis Blocks and Custom Blocks Documentation

  • Genesis Blocks Docs
  • Genesis Custom Blocks Docs
  • Genesis Block Theme Docs

Genesis Framework Documentation

  • Genesis Framework Docs
  • Genesis Sample Theme Docs
  • Genesis Framework Developer Docs

© 2013–2025 WPEngine, Inc. All rights reserved. WP ENGINE®, VELOCITIZE®, TORQUE®, EVERCACHE®, and the cog logo service marks are owned by WPEngine,Inc.
1WP Engine is a proud member and supporter of the community of WordPress® users. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. WP Engine is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.