• I love how the featured graphic appears with the post on the homepage but when a reader clicks on the post the featured graphic is gone.

    I don’t mind the main graphic on all the pages, but we need the featured graphic on the page. We can insert within the body of the post, but I was hoping to avoid that. What can I do to make sure the featured graphic is posted on the blog post?

    Website: http://www.MommyUniversityNJ.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,
    To show featured graphic post, you need to add this:

    if ( has_post_thumbnail() && is_singular('post' )) {
    the_post_thumbnail('');
    }

    in functions.php within the <div class=”banner”>

    What can I do to make sure the featured graphic is posted on the blog post?

    Go to Appearance->Editor-> functions.php and edit, So the whole div will look like this once you’re done:

    <div class="banner">
    		<div class="wrap">
    			<?php
    			if(is_front_page()) {
    				lifestyle_get_home_banner();
    			} elseif ( !is_front_page() && get_theme_mod( 'lifestyle_header_home' ) ) {
    					echo '';
    			} else {
    				// get title
    				$id = get_option('page_for_posts');
    
    				if (( 'posts' == get_option( 'show_on_front' )) && (is_day() || is_month() || is_year() || is_tag() || is_category()  || is_home())) {
    						lifestyle_get_home_banner();
    				} elseif(is_home()) {
    					if ( has_post_thumbnail($id) ) {
    						echo get_the_post_thumbnail( $id, 'full' );
    					}
    				} elseif ( has_post_thumbnail() && is_singular('page' ) || has_post_thumbnail() && is_singular('post' )) {
    						the_post_thumbnail('');
    				}
    			}
    			?>
    		</div><!-- .wrap -->
      	</div><!-- .banner -->

    I recommend you not to edit Lifestyle directly, since it is child theme of Omega but still create a child theme of Lifestyle http://codex.wordpress.org/Child_Themes to work with.

    A child theme of a Lifestyle also helps to keep any customisation during the next upgrade.

    Thread Starter mommyu

    (@mommyu)

    I made that change but now the featured graphic each blog post has replaced the header graphic for the website and it’s huge.

    Ideally it would be header graphic then graphic for the blog post.

    Also, I am trying to create a child theme but I am having difficulty understanding how to do that.

    Thread Starter mommyu

    (@mommyu)

    I made that change but now the featured graphic each blog post has replaced the header graphic for the website and it’s huge.

    Ideally it would be header graphic then graphic for the blog post.

    Also, I am trying to create a child theme but I am having difficulty understanding how to do that.

    Hello,
    The theme is designed in such a way that either header graphic or feature graphic can be displayed.It’s not impossible to display both of them together, but the layout of your site will gets damaged.
    However it is possible to reduce the size of featured graphic.
    Let me know how can I help you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Featured Graphic Missing on Post’ is closed to new replies.