• Resolved melanie bund

    (@melanie-bund)


    Hi
    I have a search field in the header to search for users/members and for some reason it only works on the homepage, it seems to be blocked on all other pages, as in – you cant type anything in the field.
    below is code

    <div class="headersearchbox">
       <?php $results_page = site_url().'/search-results/'; ?>
    <form name="search" method="post" action="<?php echo $results_page; ?>">
    <input type="text" name="search_string" id="search_string" class="headersearch">
    <input type="submit" name="submit" id="submit" value="Search" class="headersearchbutton">
    </form>
    </div>

    so works here
    http://photohunters.org/photohunters/
    but not on any other page – eg.
    http://photohunters.org/photohunters/portfolio/

    i havent disabled it apart from media queries, and even when i take out all the media queries it still does not work
    Can anyone advise? HELP?
    Thank you
    Melanie

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there melanie bund,

    Hope you’re well! 🙂

    I can see that you have a child theme so this is css code that may help you:

    #site-navigation {
    	clear: both;
    }

    Let me know if it helps! 🙂

    Take care,
    Calvin

    Thread Starter melanie bund

    (@melanie-bund)

    thank you, works a charm Calvin! i have no idea why?
    melanie

    Hey there melanie,

    Glad it’s working for you! 🙂

    It seems it was cause by a floating element. That’s why you should clear the element after the floated elements.

    I suggest you mark this thread as resolved so other members with the same issue can see that this ticket contains an answer that maybe a possible solution for their issue.

    Take care,
    Calvin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘search field only working on homepage’ is closed to new replies.