Title: generate_page_header function Q
Last modified: January 29, 2020

---

# generate_page_header function Q

 *  Resolved [sprowt](https://wordpress.org/support/users/sprowt/)
 * (@sprowt)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/generate_page_header-function-q/)
 * hi,
    i’m learning php/wordpress deeply and dissecting GP in process.
 * quick Q as your time allows, please:
 * what does the `generate_page_header` function in featured-images.php (line 85
   and line 104) do?
 * always enjoying your theme <3
    thank you!

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

 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/generate_page_header-function-q/#post-12379162)
 * Hi there,
 * Looks like it’s just a conditional tag checking if the page header exists. If
   so then we don’t add the featured image.
 * Let me know if this helps 🙂
 *  Thread Starter [sprowt](https://wordpress.org/support/users/sprowt/)
 * (@sprowt)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/generate_page_header-function-q/#post-12382251)
 * yes helps, thanks!
    interested to learn about how GP does it’s magic <3 since
   it adds featured img in div below #masthead and above the #page.site i found 
   it confusing. perhaps it’s used for further customization using addons. thanks
   for your time and have a great day, Leo <3
 *  Thread Starter [sprowt](https://wordpress.org/support/users/sprowt/)
 * (@sprowt)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/generate_page_header-function-q/#post-12382671)
 * also, yes–resolved 🙂
 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/generate_page_header-function-q/#post-12383315)
 * No problem 🙂

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

The topic ‘generate_page_header function Q’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Leo](https://wordpress.org/support/users/leohsiang/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/generate_page_header-function-q/#post-12383315)
 * Status: resolved