I'm new to Drupal/PHP and am trying to create a site for my company. They would like to see the search form either in the logo section or in the Secondary links section of the UI.

I searched the forum, but didn't find a solution. I believe style.css is out of the question. Which file(s) should I be editing and what is the code to make this happen? Thanks for any assistance that you may provide.

Comments

waxstreet’s picture

You will want to edit page.tpl.php; cut the following code

print $search_box

and paste it where you see <<PASTE HERE>>

         <?php if (($secondary_links)) : ?>
      <?php print '<div id="submenu">' ?>
          <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?> <<PASTE HERE>>
          <?php print '</div><div class="stopfloat"></div>' ?>
        <?php endif; ?>
waxstreet’s picture

Status: Active » Closed (fixed)
businsky’s picture

Title: How to Move Search Form from Header to Secondary Links Section » I would like to be able to modify the code for the primary horizontal link bar. Can someone let me know where the CSS is?
Version: 6.x-1.6 » 7.x-3.0-beta7
businsky’s picture

I've figured out that it is in the Primary-links.css file, but what I'm specifically trying to do is to add another bar behind the primary links, so they don't look so much like tabs.