• Resolved uteman23

    (@uteman23)


    Hey everyone –
    I am using this code in my theme and it just isn’t working. All it does is take me to index.php

    <form id="searchform" method="get" action="<?php bloginfo('url') ?>/">
    	<input type="text" id="search" value="Press 'Enter' to Submit" onfocus="this.value='';return false;" />
    </form>

    I have also tried using <?php echo $_SERVER['PHP_SELF']; ?> but that doesn’t work either – the site you can see it on is https://www.onedayatatimetheme.com
    Thanks, TH

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try:

    <form id="searchform" method="get" action="<?php bloginfo('url') ?>/">
    	<input type="text" id="search" name="s" value="Press 'Enter' to Submit" onfocus="this.value='';return false;" />
    </form>
    Thread Starter uteman23

    (@uteman23)

    Worked like a charm! Thanks esmi

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search not working – please help’ is closed to new replies.