Skip to content

Instantly share code, notes, and snippets.

@roborracle
Last active January 6, 2016 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roborracle/3311ddfa822a178889c1 to your computer and use it in GitHub Desktop.
Save roborracle/3311ddfa822a178889c1 to your computer and use it in GitHub Desktop.
How to print the search form in Drupal 7 for custom theme
// add a new region to your MYTHEME.info file
regions[top_bar_wrap] = Main Top Bar Block
// add the php to your THEMEPAGE.tpl.php in this example i've added as follows
<section class="top-bar-section">
<div class="my-class-main-nav hide-for-small-only"> // these are my classes, you can add yours as needed
<?php print render($page['top_bar_wrap']); ?>
</div>
</section>
// save it all, push it up and make sure you clear your cache and refresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment