Title: Child Theme functions.php Adding Image
Last modified: August 30, 2016

---

# Child Theme functions.php Adding Image

 *  [zscheimer](https://wordpress.org/support/users/zscheimer/)
 * (@zscheimer)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-adding-image/)
 * Below is the code that I put in my functions.php file of the child theme. This
   did not work. Is there something wrong with where I inserted the HTML?
 * add_filter(‘tc_fp_block_display’, ‘content_before_fp’);
    function content_before_fp(
   $html) { $before_fp = <img src=”[http://midwestsportstrips.com/wp-content/uploads/2015/06/Capture.png&#8221](http://midwestsportstrips.com/wp-content/uploads/2015/06/Capture.png&#8221);
   alt=”Baseball Trips FP” style=”width:844px;height:344px;”>; return $before_fp.
   $html; }

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

 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-adding-image/#post-6255735)
 * it should be:
    `$before_fp = '<img src="http://midwestsportstrips.com/wp-content/
   uploads/2015/06/Capture.png" alt="Baseball Trips FP" style="width:844px;height:
   344px;">;'`
 * quotes were missing ?
 *  Thread Starter [zscheimer](https://wordpress.org/support/users/zscheimer/)
 * (@zscheimer)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-adding-image/#post-6255763)
 * That is what happens when i put this in:
    add_filter(‘tc_fp_block_display’, ‘
   content_before_fp’); function content_before_fp($html) { $before_fp = ‘<img src
   =”[http://midwestsportstrips.com/wp-content/uploads/2015/06/Capture.png&#8221](http://midwestsportstrips.com/wp-content/uploads/2015/06/Capture.png&#8221);
   alt=”Baseball Trips FP” style=”width:844px;height:344px;”>;’ return $before_fp.
   $html; }

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

The topic ‘Child Theme functions.php Adding Image’ is closed to new replies.

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

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)

 * 2 replies
 * 2 participants
 * Last reply from: [zscheimer](https://wordpress.org/support/users/zscheimer/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-adding-image/#post-6255763)
 * Status: not resolved