WordPress.org

Ready to get started?Download WordPress

Forums

Puting cursor in search box automatically refreshes page (5 posts)

  1. Nevis1
    Member
    Posted 8 years ago #

    Using WP 2.03 and Tiga theme 1.01 and my blog is at the following link http://www.nevis1.com/nevis1blog/

    Everytime I try to search, as soon as I put the cursor in the search box the page just refreshes. Any ideas? I am also not that good at editing PHP and or CSS files so if you could be very specific about which file and where to put or correct what line I would appreciate it

  2. newflesh
    Member
    Posted 8 years ago #

    Actually, I noticed that basically the whole page is clickable, not only search box. It seems there is an onclick function in the header that is "leaking" out over the rest of the page.

    Here's that section:
    <div id="header" onclick="location.href='http://www.nevis1.com/nevis1blog/';" style="cursor: pointer;">
    <div class="header">
    <h1><a class="blog-name" href="http://www.nevis1.com/nevis1blog">Nevis, West Indies. “A Non-Tourist-Trap” Blog About Nevis.</a></h1>

    <h2 class="blog-description"></h2>
    </div>

    I see no definition for the id "header" in your stylesheet, only a class, and the div is open. I suggest you try replacing the above with the following:

    <div class="header" onclick="location.href='http://www.nevis1.com/nevis1blog/';" style="cursor: pointer;">
    <h1><a class="blog-name" href="http://www.nevis1.com/nevis1blog">Nevis, West Indies. “A Non-Tourist-Trap” Blog About Nevis.</a></h1>

    <h2 class="blog-description"></h2>
    </div>

    That removes the redundant div, and moves the onclick funtion into the real header. And the code would most likely be found in header.php.

  3. newflesh
    Member
    Posted 8 years ago #

    Double post...

  4. Nevis1
    Member
    Posted 8 years ago #

    Thank You, Thank You, Thank You! I did notice that the whole page was "clickable", but being new to this PHP/CSS/Blog stuff, I thought that was the way it worked LOL Seems to be OK now, but I would appreciate it if you can take a quick look when you have a moment and see if it seems ok to you.

    Thanks again

  5. newflesh
    Member
    Posted 8 years ago #

    Seems to work fine in the three browsers I tested now, and I can't see any other obvious defects.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags