Pre-Built Theme, how to transfer header to blocks I am moving at a glacial pace at theming, even following guides, because I think I am having trouble understanding the relationship between all parts of drupal theming. If someone can help me with the following issue, it should make me better understand how I am to configure everything else

Basically, I want to know the ideal way to theme this header which is static html to transfer into a block or a region so that I can theme it. I initially just included it using php include statements, but realize this is not good practice in drupal, and am looking for  the proper way to do it.

        &lt;div class="dropdown animated fadeInDown animation-delay-11"&gt;
            &lt;a href="user" class="dropdown-toggle" data-toggle="dropdown"&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt; Login&lt;/a&gt;
            &lt;div class="dropdown-menu dropdown-menu-right dropdown-login-box animated fadeInUp"&gt;
                &lt;form role="form"&gt;
                    &lt;h4&gt;Login Form&lt;/h4&gt;

                    &lt;div class="form-group"&gt;
                        &lt;div class="input-group login-input"&gt;
                            &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt;&lt;/span&gt;
                            &lt;input type="text" class="form-control" placeholder="Username"&gt;
                        &lt;/div&gt;
                        &lt;br&gt;
                        &lt;div class="input-group login-input"&gt;
                            &lt;span class="input-group-addon"&gt;&lt;i class="fa fa-lock"&gt;&lt;/i&gt;&lt;/span&gt;
                            &lt;input type="password" class="form-control" placeholder="Password"&gt;
                        &lt;/div&gt;
                        &lt;div class="checkbox pull-left"&gt;
                            &lt;label&gt;
                                &lt;input type="checkbox"&gt; Remember me
                            &lt;/label&gt;
                        &lt;/div&gt;
                        &lt;button type="submit" class="btn btn-ar btn-primary pull-right"&gt;Login&lt;/button&gt;
                        &lt;div class="clearfix"&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/form&gt;
            &lt;/div&gt;
        &lt;/div&gt; &lt;!-- dropdown --&gt;

        &lt;div class="dropdown animated fadeInDown animation-delay-13"&gt;
            &lt;a href="/search/node" class="dropdown-toggle" data-toggle="dropdown"&gt;&lt;i class="fa fa-search"&gt;&lt;/i&gt;&lt;/a&gt;
            &lt;div class="dropdown-menu dropdown-menu-right dropdown-search-box animated fadeInUp"&gt;
                &lt;form role="form"&gt;
                    &lt;div class="input-group"&gt;
                        &lt;input type="text" class="form-control" placeholder="Search..."&gt;
                        &lt;span class="input-group-btn"&gt;
                            &lt;button class="btn btn-ar btn-primary" type="button"&gt;Go!&lt;/button&gt;
                        &lt;/span&gt;
                    &lt;/div&gt;&lt;!-- /input-group --&gt;
                &lt;/form&gt;
            &lt;/div&gt;
        &lt;/div&gt; &lt;!-- dropdown --&gt;
    &lt;/nav&gt;
&lt;/div&gt; &lt;!-- container --&gt;


Thanks for the help,

Matthew Beal
Essentially you have the User Login &amp; Search Form blocks so you could add the following to your themes' .info file:

regions[login] = Login
regions[search] = Search


Clear the site cache and visit your Blocks page (admin/structure/block) and you should see 2 additional regions. Place the User Login block in the Login region and the Search Form block in the Search region.

In page.tpl.php in your theme, use the following code:

&lt;?php if (!empty($page['login'])): ?&gt;
&lt;div class="dropdown animated fadeInDown animation-delay-11"&gt;
  &lt;a href="user" class="dropdown-toggle" data-toggle="dropdown"&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt; Login&lt;/a&gt;
  &lt;div class="dropdown-menu dropdown-menu-right dropdown-login-box animated fadeInUp"&gt;
    &lt;?php print render($page['login']); ?&gt;
  &lt;/div&gt;
&lt;/div&gt; &lt;!-- dropdown --&gt;
&lt;?php endif; ?&gt;

&lt;?php if (!empty($page['search'])): ?&gt;
&lt;div class="dropdown animated fadeInDown animation-delay-13"&gt;
  &lt;a href="/search/node" class="dropdown-toggle" data-toggle="dropdown"&gt;&lt;i class="fa fa-search"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;div class="dropdown-menu dropdown-menu-right dropdown-search-box animated fadeInUp"&gt;
    &lt;?php print render($page['search']); ?&gt;
  &lt;/div&gt;
&lt;/div&gt; &lt;!-- dropdown --&gt;
&lt;?php endif; ?&gt;


This will give you a starting point and you can start overriding output in your theme by using functions and templates. It should be possible to achieve almost the exact code you're looking for.

You're obviously using Bootstrap, have you tried using the Drupal Bootstrap theme as a starting point?