SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2005
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wordpress search bar resets after input

    So I have this site here. When I go to type something into the search bar on the upper right area, it resets itself thus preventing me from completing a search query. Anybody know why? I've upgraded to the latest version of WP.

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2005
    Posts
    1,857
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Blog Guy View Post
    So I have this site here. When I go to type something into the search bar on the upper right area, it resets itself thus preventing me from completing a search query. Anybody know why? I've upgraded to the latest version of WP.
    Your HTML is screwed up. You are not closing your anchor tags. The result is that your search box is actually a link and when it is clicked you are directed to the link. Here is a little section of your HTML:

    Code:
    <ul>
               <li><a href="http://www.datingseniormen.com/tag/military-milo/">Military Milo</li>
               <li><a href="http://www.datingseniormen.com/tag/figaro/">Figaro</li>
               <li><a href="http://www.datingseniormen.com/tag/firefly/">Firefly</li>
               <li><a href="http://www.datingseniormen.com/tag/pasha/">Pasha</li>
               <li><a href="http://www.datingseniormen.com/tag/stunt-man/">Stunt Man</li>
               <li><a href="http://www.datingseniormen.com/tag/web-stalker/">Web Stalker</li>
               <li><a href="http://www.datingseniormen.com/tag/dr-shrink/">Dr Shrink</li>
               <li><a href="http://www.datingseniormen.com/tag/stargazer/">Stargazer</li>
               <li><a href="http://www.datingseniormen.com/tag/lust-for-brains/">Lust For Brains</li>
               <li><a href="http://www.datingseniormen.com/tag/harvard-yard/">Harvard Yard</li>
               <li><a href="http://www.datingseniormen.com/tag/tv-idol/">TV Idol</li>
               <li><a href="http://www.datingseniormen.com/tag/past-perfect/">Past Perfect</li>
    </ul>
    Your anchor tags are not closed. It should be like this:

    Code:
    <li><a href="http://www.datingseniormen.com/tag/military-milo/">Military Milo</a></li>
    Close your anchor tags (all of them) in your template files and try again. Also, validate your HTML using the W3 Validator. That will help you find errors. You've got quite a few errors such as unclosed anchor tags.

    http://validator.w3.org

    The Validator is a key tool for any web designer. It would have found these errors for you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •