Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
In Appearance > Themes > Customise
Do you have the option to upload a ‘Header image’ ?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Is the banner to repeat on all pages?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Have you created a Child Theme of PianoBlack?
A child theme?
Not too sure what that is.
I just straight up edited the code in the editor.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
To avoid changes lost when updating themes, it’s best to create Child Themes.
From these circumstances, you will need a copy of the header.php file and Child style.css file, in your Child Theme Directory.
Oh you know what, I did create one of these before editing.
I just copied and pasted the piano black theme .zip into another directory for safe keeping.
So I am good to go 🙂
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
So you have the Child Theme?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Use the img
HTML element to display your image in the Child header.php file.
Information on this element
http://www.w3schools.com/tags/tag_img.asp
The src
attribute’s value will need to include a full path, something like wp-content/themes/yourThemeName/yourImageDirectory/yourImageFile.YourImageExtension
.
First get the img
element working in the page, then use trial-and-error to position it in the general area you want.
Afterwards you may need to use CSS to tweak appearance.
Alright, where in the header.php file do I put it?
Anywhere?
Or under this section:
<title><?php
global $page, $paged; wp_title( ‘|’, true, ‘right’ ); bloginfo( ‘name’ );
$site_description = get_bloginfo( ‘description’, ‘display’ ); if ( $site_description && ( is_home() || is_front_page() ) ) echo ” | $site_description”;
if ( $paged >= 2 || $page >= 2 ) echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘cubic’ ), max( $paged, $page ) );
?></title>