Last active
January 6, 2016 18:54
-
-
Save roborracle/3311ddfa822a178889c1 to your computer and use it in GitHub Desktop.
How to print the search form in Drupal 7 for custom theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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