Title: where to add code to header.php
Last modified: August 31, 2016

---

# where to add code to header.php

 *  Resolved [wclune](https://wordpress.org/support/users/wclune/)
 * (@wclune)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/where-to-add-code-to-headerphp/)
 * Thanks to anyone who can help..
    So I am Stuck, we are using “minima” theme I
   am really wondering where to put the code to add a slider in Below the menu. 
   ARGH the site is [http://nypower.org](http://nypower.org)
 *     ```
       <!doctype html>
       <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
       <!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
       <!--[if IE 8]>    <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
       <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
           <head>
               <meta charset="utf-8">
               <title><?php wp_title( '|', true, 'right' ); ?></title>
               <?php if (is_singular()) wp_enqueue_script('comment-reply');
              ?>
               <meta name="viewport" content="width=device-width, initial-scale=1.0">
               <?php wp_head(); ?>
   
           </head>
           <body <?php body_class(); ?>>
               <div id="wrapper">
               <!-- include Logo and Menu -->
               <div id="ti-header-container" class="appear-edit">
                   <div id="ti-header" class="navigation row">
   
                                       <a>" id="ti-logo-link" class="logo">
                                           <?php
                                           if (get_option("sp-" . md5('min-site-logo'), '')) {
                                               ?>
                                               <img class="ti-logo" src="<?php echo esc_url(wp_get_attachment_url(get_option("sp-" . md5('min-site-logo'), ''))); ?>" alt="">
                                           <?php } else {
                                               ?>
                                               <span class="ti-site-logo"><?php bloginfo('name'); ?></span>
                                               <?php
                                           }
                                           ?>
                                       </a>
   
                                           <?php  wp_nav_menu(array('theme_location' => 'primary_navigation','container_class'=>'menu', 'menu_class' => 'menu'));
                                           ?>
                                   <div class="dropdown"><span class="icon-menu"></span>
                                       <ul class="dropdown-menu">
   
                                   </div>
                                   <div class="search-toggle">
                                       <a href="#search-container"><span class="icon-lens"></span></a>
                                   </div>
                                   <div id="search-container" class="search-box-wrapper hide">
                                       <div class="search-box">
                                           <?php get_search_form(); ?>
                                       </div>
                                   </div>
                                   </div>
                   <!-- subheader sidebar -->
               </div>
       ```
   
 * [https://wordpress.org/plugins/ml-slider/](https://wordpress.org/plugins/ml-slider/)

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

 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/where-to-add-code-to-headerphp/#post-7198434)
 * Hi there,
 * Looks like you have a slider below the header – were you still looking to use
   Meta Slider?
 * Thanks,
    Dave
 *  Thread Starter [wclune](https://wordpress.org/support/users/wclune/)
 * (@wclune)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/where-to-add-code-to-headerphp/#post-7198435)
 * yes i am still hoping to use meta slider. this theme seems to really hate it 
   though. hahah
 *  Thread Starter [wclune](https://wordpress.org/support/users/wclune/)
 * (@wclune)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/where-to-add-code-to-headerphp/#post-7198436)
 * I should add the “slider” that is there is not really much use. hoping to use
   a meta slider in its place.
 * Thanks
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/where-to-add-code-to-headerphp/#post-7198450)
 * Hi,
 * How is the current slider being added i.e. via content area/widget or in the 
   template?
 * I can’t see anything obvious in the code above.
 * Thanks,
    Dave

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

The topic ‘where to add code to header.php’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3568997)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/where-to-add-code-to-headerphp/#post-7198450)
 * Status: resolved