Set Featured image in Page-Title area on pages/posts in eleven40

Community Forums Forums Design Tips and Tricks Set Featured image in Page-Title area on pages/posts in eleven40

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  KarenLeighBurton 11 months ago.

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

    KarenLeighBurton
    Participant
    Post count: 19

    Hello all I am using Elevel40 (not the “pro” because that removed the “page-title” widget area at the top that I want to use).
    What I want is to assign a certain image to the homepage in that section by way of featured post widget or genesis responsive slider, then on all pages/posts have the featured image of that particular page or post appear instead, if no image is assigned then default back to the main image used on the homepage. Can anyone help me?
    I’d also like the site description to appear below the site title. I’ve tried several variations and tricks that I’ve found but none seem to produce the result I am looking for. Any help will be greatly appreciated.
    Right now the site is on local development so I have no url to display.

    #65027

    KarenLeighBurton
    Participant
    Post count: 19

    Any takers? come-on it can’t be that hard? I just don’t know what i’m doing for the call. I just need to know how to call the page/post “featured-image” to appear in the “page-title” section on all pages/posts EXCEPT the homepage.

    I created a page.php and placed within the theme.
    Added this code – trying to model after another post – not working…

    <?php

    add_action( ‘genesis_before_content_sidebar_wrap’, ‘eleven40_page_title’ );

    function eleven40_page_title() {
    echo ‘<div id=”inner”>’;

    if (has_post_thumbnail( $post->ID ) ) :
    echo get_the_post_thumbnail($post->ID);

    else :

    if ( is_active_sidebar( ‘page-title’ ) ) :
    echo ‘<div id=”page-title”>’;
    dynamic_sidebar( ‘page-title’ );
    echo ‘</div><!– end #page-title –>’;

    endif;

    endif;
    echo ‘</div><!– end #inner –>’;

    }

    genesis();

    this is really my weak point, can someone please help?

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

You must be logged in to reply to this topic.