Title: Missing function in &#8220;content-page.php&#8221; &#8211; maxwell_post_image_page()
Last modified: May 28, 2020

---

# Missing function in “content-page.php” – maxwell_post_image_page()

 *  Resolved [camya](https://wordpress.org/support/users/ecc/)
 * (@ecc)
 * [6 years ago](https://wordpress.org/support/topic/missing-function-in-content-page-php-maxwell_post_image_page/)
 * I found a missing implementation problem in the “template-parts” for content.
   In `content.php`, `content-single.php`, and `content-slider.php`, you use the
   maxwell_*() functions, which could be easily overwritten in the child theme.
 *     ```
       <?php maxwell_post_image_single(); ?>
       <?php maxwell_post_image_archives(); ?>
       <?php maxwell_slider_image(); ?>
       ```
   
 * Thats awesome, because I need to add the image just above “the_content” in order
   to float it right. It’s easy to implement this. Love it so far. 🙂
 * **Problem:** Unfortunately you use the WordPress stock function the_post_thumbnail()
   in “template-parts\content-page.php”
 * `<?php the_post_thumbnail(); ?>`
 * Because of this, I can’t move the image from the article header to the content
   area. 🙁
 * **Suggesion:**
 * Please implement a maxwell_*() function to load the thumbnail in “`template-parts/
   content-page.php`” to.
 * `<?php maxwell_post_image_page(); ?>`
 * Cheers,
    Andreas
    -  This topic was modified 6 years ago by [camya](https://wordpress.org/support/users/ecc/).

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

 *  Theme Author [ThemeZee](https://wordpress.org/support/users/themezee/)
 * (@themezee)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/missing-function-in-content-page-php-maxwell_post_image_page/#post-13155584)
 * Hi Andreas,
 * Thanks so much for using Maxwell.
 * I would argue that the function is not really missing. Adding our own maxwell_*()
   functions for displaying featured images has the reason that there are either
   theme options or image links to consider.
 * For the featured image on static pages there is no further logic, so adding a
   custom function in the theme would just be an empty wrapper. Yes, I can see why
   this could make sense, but decided against.
 * You can still modificate the theme as you wish, by overriding the content-page.
   php template file. I do not see the point what an empty wrapper function improves
   when you want to change the position of the image.
 * Cheers,
    Thomas
 *  Thread Starter [camya](https://wordpress.org/support/users/ecc/)
 * (@ecc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/missing-function-in-content-page-php-maxwell_post_image_page/#post-13170852)
 * Hi Thomas,
 * nice to meet you and thank you for your explanation. In the meantime we launched
   our project, and your theme is really great. 🙂
 * If you don’t implement my request, I’m absolute fine with it.
 * Following just as an additional explanation.
 * I overwrite the `function maxwell_post_image_single() {}` to hide the image from
   its default position completely, because this image is added just before the `
   <header class="entry-header">` in the template by default.
 * On my website, I needed the image inside the `<div class="entry-content clearfix"
   >` just above the_content().
 * So I hide the image with maxwell_post_image_single() and pre-pend it in add_action(‘
   the_content’) above the post content.
 * I implemented this for the post with success.
 * Unfortunately it’s not possible to hide the image using the stock `the_post_thumbnail()`
   function using any available action or filter. So a function `maxwell_page_image()`
   is really needed here to accomplish the above requirements.
 * So pages on our site still use the default image position above the header, but
   I’m fine with this. 😉
 * Have a nice day and greetings from Hamburg,
    Andreas
 *  Theme Author [ThemeZee](https://wordpress.org/support/users/themezee/)
 * (@themezee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/missing-function-in-content-page-php-maxwell_post_image_page/#post-13293461)
 * Hi Andreas,
 * You can simply override the content-page.php template file directly and remove
   the call to `the_post_thumbnail()` completely if you don’t need it, or move its
   position. No need to touch the template functions.
 * Cheers,
    Thomas

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

The topic ‘Missing function in “content-page.php” – maxwell_post_image_page()’ is
closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/maxwell/2.4.2/screenshot.jpg)
 * Maxwell
 * [Support Threads](https://wordpress.org/support/theme/maxwell/)
 * [Active Topics](https://wordpress.org/support/theme/maxwell/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/maxwell/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/maxwell/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ThemeZee](https://wordpress.org/support/users/themezee/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/missing-function-in-content-page-php-maxwell_post_image_page/#post-13293461)
 * Status: resolved