• Resolved arose8199

    (@arose8199)


    I was wondering if the featured image does anything on a page…or just posts? Does it have to be a specific size?

Viewing 6 replies - 1 through 6 (of 6 total)
  • In terms of featured-image size, you’ll find the specs on this page:

    http://theme.wordpress.com/themes/adaption/

    The main column width is 680px.
    The columns are 20%

    Since the optional right sidebar has a flexible width – meaning that it gets wider on larger screens – there isn’t a specific requirement for featured image widths. If you do use the sidebar on your site, your featured images can be 680px and will take up the entire width of the main column.

    If you don’t use the sidebar, you can try making your featured image wider to make sure it fills the area completely at most screen sizes.

    I was wondering if the featured image does anything on a page…or just posts?

    Featured images are displayed on single posts and the blog index, for posts with the standard post format.

    Thread Starter arose8199

    (@arose8199)

    Thanks, that answered my question.

    Thread Starter arose8199

    (@arose8199)

    Is there a simple way to add the featured image feature to the pages as well?

    Sure, you could do that with a child theme, in the content-page.php file.

    The Codex has some examples of how to add featured images, output via the the_post_thumbnail function in WordPress theme files:

    http://codex.wordpress.org/Function_Reference/the_post_thumbnail#Examples

    Where you put the code in your file depends where you want the image displayed on the page.

    Let me know how it goes!

    Thread Starter arose8199

    (@arose8199)

    I got it to work. It was super simple.
    I just put the following code right after the info about the template before any of the other code:

    <?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    	the_post_thumbnail( 'featured-image' );
    }
    ?>

    It seemed to work perfectly. I now can select a featured image on any of my pages.

    Super! Glad you got it working.

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

The topic ‘Featured Image’ is closed to new replies.