Backgrund to sample.jpg in Minimum

Community Forums Forums Design Tips and Tricks Backgrund to sample.jpg in Minimum

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37653

    Annaedv
    Participant
    Post count: 44

    Hello. Is there a way to put a background colour behind my picture “sample.jpg” in Minimum theme? And can I have this picture on the other pages to? As it is now, the pictures disappears when I change page.

    http://www.advokateden.se
    #43691

    cehwitham
    Participant
    Post count: 396

    If I’m understanding you correctly, you’d just need to add a style in style.css like:

    `#header { background-color:#ff9900; }`

    If you want the image to appear on all pages, find this in functions.php:

    `/** Add the featured image section */
    add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo ‘‘;
    }
    elseif ( is_singular( array( ‘post’, ‘page’ ) ) && has_post_thumbnail() ){
    echo ”;
    echo get_the_post_thumbnail($thumbnail->ID, ‘header’);
    echo ”;
    }
    }`

    And change it to:

    `/** Add the featured image section */
    add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    echo ‘‘;
    }`

    Hope this helps.

    Chris


    Twitter: cehwitham Web: cehwitham.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.