How to Add Featured Image Code to Inside Pages – WordPress Bunch theme

Desired result: Have a Featured Image at the top of every inside Page. This will show how to add the Featured Image code to inside Pages, without ruining the other inside Pages that don’t have a Featured Image on them. Alter the following files: style.css, page.php and functions.php.

1. CSS FILE

File: style.cssLine: 618 (approx)

/* featuredImg – Featured Image on each Page */

#featuredImgWrapper {
width: 960px;
margin: 0 auto;
padding: 0;
margin-top: -50px; /* This moves the img up to the top HR line */
padding-bottom: 50px; /* This pushes the bottom of the wrapper back down for the pages that don’t have a Featured Img, but still need the 50px gap between the top HR line and the content box */
}

2. PAGE FILE

File: page.phpNote: add the following Featured Image section between get_header and posts sections.