Created
September 10, 2024 10:33
-
-
Save shaunpalmer/7771079b74b7ce8365efa328fc4832cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function add_custom_header() { | |
| if (is_front_page() || is_home()) { | |
| ?> | |
| <header id="custom-header"> | |
| <!-- Your custom header content here --> | |
| </header> | |
| <?php | |
| } | |
| } | |
| add_action('wp_head', 'add_custom_header'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment