Title: Problems embeding the scripts in the header
Last modified: August 21, 2016

---

# Problems embeding the scripts in the header

 *  [bacharos](https://wordpress.org/support/users/bacharos/)
 * (@bacharos)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/problems-embeding-the-scripts-in-the-header/)
 * Hi
 * I’m having trouble embedding either the shortcode or the PHP script specifically
   in the header.
 * As seen here:
    [http://oi61.tinypic.com/2lbjibr.jpg](http://oi61.tinypic.com/2lbjibr.jpg)
   sellmyapp.com
 * See the shortcode outlined on the upper right side of the attached image. When
   I insert the PHP code it shows nothing.
 * Important to note – I’m using Classipress Theme and inserting the code in the
   header settings. I’ve used scripts before in the same location and it worked.
 * The other shortcodes are working in other places, like in our homepage on the
   right sidebar Sponsors area.
 * Thanks for a great plugin
 * Guy
 * [https://wordpress.org/plugins/ads-by-datafeedrcom/](https://wordpress.org/plugins/ads-by-datafeedrcom/)

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

 *  Plugin Author [datafeedr](https://wordpress.org/support/users/datafeedrcom/)
 * (@datafeedrcom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/problems-embeding-the-scripts-in-the-header/#post-5078694)
 * Hi,
 * You should use PHP to insert code into your template files.
 * That’s covered in the video “Display a group of ads above a post’s content using
   the PHP function” here: [http://wordpress.org/plugins/ads-by-datafeedrcom/other_notes/](http://wordpress.org/plugins/ads-by-datafeedrcom/other_notes/)
 * Eric
 *  Thread Starter [bacharos](https://wordpress.org/support/users/bacharos/)
 * (@bacharos)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/problems-embeding-the-scripts-in-the-header/#post-5078698)
 * Apparently the classipress advertising section only like HTML or Java script,
   NOT php or shortcodes. So i added a new custom section to the php file on line
   74 and then just turned off the advertising in the classipress. It seems to work
   fine now

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

The topic ‘Problems embeding the scripts in the header’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ads-by-datafeedrcom.svg)
 * [Ads by datafeedr.com](https://wordpress.org/plugins/ads-by-datafeedrcom/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ads-by-datafeedrcom/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ads-by-datafeedrcom/)
 * [Active Topics](https://wordpress.org/support/plugin/ads-by-datafeedrcom/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ads-by-datafeedrcom/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ads-by-datafeedrcom/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bacharos](https://wordpress.org/support/users/bacharos/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/problems-embeding-the-scripts-in-the-header/#post-5078698)
 * Status: not resolved