Title: Insert Code in Header
Last modified: May 7, 2019

---

# Insert Code in Header

 *  Resolved [wafwaf](https://wordpress.org/support/users/wafwaf/)
 * (@wafwaf)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/insert-code-in-header/)
 * Hi,
 * 1- Where do you recommend inserting the code in the header so it will show on
   the entire site and all pages?
 * 2- Also I was searching your documentation and couldn’t find the code (I found
   an image of it but not the actual code).
 * Thank you.

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

 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/insert-code-in-header/#post-11506838)
 * 1. It’s difficult to say as themes can be setup differently. If you could point
   me to your site so I could see it, I could give you a suggestion for the placement.
 * 2. You just need to copy the Direct Function that is generated for your ticker
   and paste it into your theme files. The Direct Function can be found at the top
   of your ticker post (edit) or the News Tickers page that lists all your tickers.
   If you place the code within existing php scripts, you’ll need to remove the 
   open/close php tags from the Direct Function code.
 *  Thread Starter [wafwaf](https://wordpress.org/support/users/wafwaf/)
 * (@wafwaf)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/insert-code-in-header/#post-11507458)
 * Great. The Theme we are using is Newswire ([https://wordpress.org/themes/the-newswire/](https://wordpress.org/themes/the-newswire/))
 *  Plugin Author [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * (@metaphorcreations)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/insert-code-in-header/#post-11508635)
 * Thanks. I would suggest placing the ticker directly under the menu so it’s between
   the <header id=”branding”> element and the <div id=”content”> element. Keep in
   mind that you’ll want to create a child them, then copy over the theme’s header
   file and make the file adjustment from within the child theme.
 * [https://developer.wordpress.org/themes/advanced-topics/child-themes/](https://developer.wordpress.org/themes/advanced-topics/child-themes/)

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

The topic ‘Insert Code in Header’ is closed to new replies.

 * ![](https://ps.w.org/ditty-news-ticker/assets/icon.svg?rev=2650696)
 * [Ditty – Responsive News Tickers, Sliders, and Lists](https://wordpress.org/plugins/ditty-news-ticker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ditty-news-ticker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ditty-news-ticker/)
 * [Active Topics](https://wordpress.org/support/plugin/ditty-news-ticker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ditty-news-ticker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ditty-news-ticker/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [metaphorcreations](https://wordpress.org/support/users/metaphorcreations/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/insert-code-in-header/#post-11508635)
 * Status: resolved