• Alright I downloaded a custom theme, and then uploaded it to my control panel.
    I’ve managed to figure out how to change the background, but I am stuck on the page banner or header.

    I have a custom image ready for the banner, I just can’t figure out the code.

    This is the default coding under editor:

    /* ———————————————————————-
    header
    ———————————————————————- */
    /* logo */
    #logo_image { position:absolute; margin:0; padding:0; line-height:100%; }
    h1.logo_text { margin:0; font-size:26px; font-weight:normal; line-height:100%; position:absolute; top:60px; left:40px; }
    h1.logo_text a { color:#aaa; }
    h1.logo_text a:hover { text-decoration:none; color:#81c8d5; }
    h1.no_desc { top:69px; }

    What do I have to change?
    Thanks.

    Oh and this is the site if anyone needs it:
    http://www.theblackappendage.net/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In Appearance > Themes > Customise
    Do you have the option to upload a ‘Header image’ ?

    Thread Starter Falathin

    (@falathin)

    No I don’t, Andrew.

    I checked there first ;P

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is the banner to repeat on all pages?

    Thread Starter Falathin

    (@falathin)

    Yes

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you created a Child Theme of PianoBlack?

    Thread Starter Falathin

    (@falathin)

    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.

    Thread Starter Falathin

    (@falathin)

    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?

    Thread Starter Falathin

    (@falathin)

    Yes.

    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.

    Thread Starter Falathin

    (@falathin)

    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>

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Custom banner’ is closed to new replies.