Title: Help needed with header.php
Last modified: August 20, 2016

---

# Help needed with header.php

 *  Resolved [decogle](https://wordpress.org/support/users/decogle/)
 * (@decogle)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/help-needed-with-headerphp/)
 * Hi all,
    here’s the link to my [website](http://decogle.com)
 * I wanted to put the search box (currently at the sidebar) to the right hand corner
   of the logo (almost like a header banner). I’ve tried to do it via header.php
   but it always ends up in the wrong place. Then I’ve tried to put the searchform.
   php in the header banner (via theme settings) but I still can’t get the hold 
   of positioning.
 * The 2nd question: how can I decrease the gap between the logo and the menu?
 * Thank you all.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [kobashicomputing](https://wordpress.org/support/users/kobashicomputing/)
 * (@kobashicomputing)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/help-needed-with-headerphp/#post-2661663)
 * You need to replace everything with your own structure. I’m not going to fill
   in all the details – I’ll leave that up to you to do and learn from this.
 * First, you need structure:
 *     ```
       <div id="header">
       	<div id="logo">
       		<img src="/path/to/yourlogo.png" alt="logo"/>
       	</div>
       	<div id="search">
       		<?php include("searchform.php"); ?>
       	</div>
       </div>
       ```
   
 * Next, you need to style it:
 *     ```
       #header {
       	width: 100%;
       float: left;
       }
       #header #logo {
       	float: left;
       }
       #header #search {
       	float: left;
       	text-align: right;
       	margin-right: 1em;
       }
       ```
   
 * I’ll leave the rest of this to you fill in the specifics and pretty it up.
 *  [Emil Uzelac](https://wordpress.org/support/users/emiluzelac/)
 * (@emiluzelac)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/help-needed-with-headerphp/#post-2661675)
 * The easiest would be to ask this on [http://www.wpexplorer.com/videos/gopress-video-overview](http://www.wpexplorer.com/videos/gopress-video-overview)
   the author of the Theme.
 * Emil
 *  Thread Starter [decogle](https://wordpress.org/support/users/decogle/)
 * (@decogle)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/help-needed-with-headerphp/#post-2661687)
 * Thank you for your help kobashicomputing and Emil.
 * I was experimenting for a good hour and accidentally ended up having the menu
   and the logo joined in one piece – thought it looked good so I left it like that.
 * Saved a copy of kobashicomputing’ post.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help needed with header.php’ is closed to new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [search box](https://wordpress.org/support/topic-tag/search-box/)

 * 3 replies
 * 3 participants
 * Last reply from: [decogle](https://wordpress.org/support/users/decogle/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/help-needed-with-headerphp/#post-2661687)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
