You’re missing a piece of code:
Change:
<?php if ( get_header_image() ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
to:
<?php if ( get_header_image() ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
<?php endif; ?>
how do I create the header.php?
Use a plain text editor like Notepad. when you are finished, upload it to the wp-content/themes/twenty-twelve-child folder using FTP or whatever file management application your host provides.
OK thank you be right back!
Sorry, I accidentally downloaded a malware (because of course I did) and can’t figure out how to get to my FTP. I did it once and now I can’t remember how to get back.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Sorry, I accidentally downloaded a malware (because of course I did) and can’t figure out how to get to my FTP. I did it once and now I can’t remember how to get back.
Does your hosting provide access to your web server’s file system? You may have another way to access that directory without using FTP.
I downloaded FileZilla (without the malware) and now I’m just trying to figure out how to get the php file to where I want
OK! I uploaded the header.php file.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Can you locate your wp-content/themes/
directory in FileZilla?
Edit: That’s cool. 😉
AHHH IT WORKED!
I just have one more question because the header isn’t centered now… is that something I can fix in the code?
Or should I just add a different header image that’s longer so it stretches across the whole top of the blog? Does that make sense?
It looks great on mobile, though!
Esmi, you deserve a medal for helping me. And a drink. THANK YOU!
Marking this as resolved, thanks again.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Congrats! I know she’ll be glad to read that. 😉