• Using WP 2.03 and Tiga theme 1.01 and my blog is at the following link https://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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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='https://www.nevis1.com/nevis1blog/';" style="cursor: pointer;">
    <div class="header">
    <h1><a class="blog-name" href="https://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='https://www.nevis1.com/nevis1blog/';" style="cursor: pointer;">
    <h1><a class="blog-name" href="https://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.

    Double post…

    Thread Starter nevis1

    (@nevis1)

    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

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Puting cursor in search box automatically refreshes page’ is closed to new replies.