Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with Search input

Featured Replies

I added a search to my front page and it looks good on Firefox even IE but the problem lies with "Google Chrome". Two of the search bars are appearing and I don't know how to delete it.

 

Here is my Header.php code.

 

</head>

<body>

<div id="topbar"> 

</div>	
</div>

<ul class="rss">
<a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe To Our Posts RSS Feed">
   <img src="<?php bloginfo('template_directory'); ?>/images/rss1.png" style="border-style: none" alt="RSS Feeds"/></a>
</ul>

<ul class="twitter">
<a href="http://www.twitter.com/" title="Twitter">
   <img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" style="border-style: none" alt="Twitter"/></a>
</ul>

<ul class="facebook">
<a href="http://www.facebook.com/" title="Facebook">
   <img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" style="border-style: none" alt="Facebook"/></a>
</ul>

<ul class="youtube">
<a href="http://www.youtube.com/" title="YouTube">
   <img src="<?php bloginfo('template_directory'); ?>/images/youtube.png" style="border-style: none" alt="YouTube"/></a>
</ul>

</div>


<div class="textInput">			
<input type="text" name="field" class="textInput" />

</div>
</div>


<div id="header"><br>


  <ul id="awesome-menu">


	<li><a href="#home" class="home">Home</a></li>
	<li><a href="#about" class="about">About</a></li>
	<li><a href="#portfolio" class="portfolio">Portfolio</a></li>
	<li><a href="#services" class="services">Services</a></li>
	<li><a href="#faq" class="faq">FAQ</a></li>
	<li><a href="#contact-us" class="contact-us">Contact Us</a></li>


</ul>
</div>



</body>



<div id="container">

<div id="menu">

<ul>

       	<?php wp_list_categories('depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?>

</ul>

</div>

 

 

Here is my CSS Code:

 

.textInput {
border: none;
background: #f4f0e2;
color: #95916e;
font-size: 12px;;
width:200px;
height:21px;
float:right;
margin:107px -124px 0px 6px;
}

Hi, from the body down there are a lot of problems, closing div at the top with no opening div, missing li within the ul's at the top not self closing on the br tags and a closing body tag in the middle of your code.

 

I think before you worry about consistency you need to fix all the problems you have. You might find that solves your problem, Firefox does seem to just ride over the bumps in html, most of the time, safari less so.

 

I'm not trying to teach you how to suck eggs but try pasting your code in to a validator:

http://validator.w3.org/#validate_by_input

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.