Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    on another page connected to my website?

    Please explain. What are you trying to accomplish.

    Thread Starter lkennye

    (@lkennye)

    like the contact page i want to change the backround picture

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This depends on how you added the image to your header. Usually, one edits header.php and adds an if — something like

    if( is_page( 'contact' ) ) {
       $logo = somefilename;
     } else {
       $logo = use_the_code_to_get_the_default_header;
    }

    Then you’d use $logo for the header image.
    NOTE: this is sample code; it will probably not work for you. It is here to demonstrate a concept, not to copy/paste.

    If you choose to edit your theme, be sure to work in a child theme.

    Thread Starter lkennye

    (@lkennye)

    i have my child theme with the functions and style im stuck on what to do next

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    study the file header.php and see how the logo is dropped in there.

    Thread Starter lkennye

    (@lkennye)

    Ok thank you I found the solution for that already do you know how I could change my posts to not have time and date it was posted and no reply box?

    Hi

    It is very easy to remove date from your posts. Add below snippet in your template’s stylesheet. Below css snippet will remove the date and time and reply box from posts.

    CSS is generally theme specific, so what works in one theme will typically not work in another, For Twenty Sixteen, add the following CSS to hide the date on posts.

    .comments-area {
        display: none;
    }
    
    .entry-footer .posted-on {
        display: none !important;
    }

    Save
    Clear the cache and check

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header Image’ is closed to new replies.