Adding featured images to posts and pages


show more Adding featured images to posts and pages provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes show less
please wait ...

Adding featured images to posts and pages

Once you have featured images in your site, you can add them pretty much anywhere you want on the site. Because the featured image is directly associated with each post and each page, without being in the content body, you can display these images in a different way from regular images in the body. The key is to know how to call them up, and how to get the correct size when you do. I have shown you this several times before. In the twentytwelve theme, the general way in which a featured image is displayed is at the top here: top of the post, large image before anything else. But earlier in the course we created new category templates and in these templates those gigantic featured images look pretty weird.

What I want to do now is add a smaller featured image here, next to the excerpt of the content in each post. To do that, we need to make some small changes to the content.php template and add in the featured image. First, I'll open content.php in my child theme and find out where I wa...

Adding featured images to posts and pages
Video duration: 4m 43s 3h 11m Intermediate Updated Nov 27, 2012

Viewers:

Adding featured images to posts and pages provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes

Subject:
Web
Software:
WordPress
Author:
please wait ...