Call us now on 0115 9738074

Magento Q&A: How to place a search box in the header

Difficulty: Easy

Modification: Template File

Q:

I am a newbie at Magento and i need help. Can anyone guide me how to display the search form at the header?

A:

Put this code:

<?php echo $this->getChildHtml(‘topSearch’) ?>

Inside /app/design/frontend/default/your_skin/template/page/html/header.phtml. Then style it so that it appears exactly where you want it. It’s as simple as that!

Share and Enjoy:
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • Google Bookmarks

Tags: , , ,

Leave a Reply