Support » Plugin: Events Manager » [Plugin: Events Manager] remove word "search" from text input without removing it from sub

Viewing 3 replies - 1 through 3 (of 3 total)
  • Create a template override

    1. Copy /wp-content/plugins/events-manager/templates/templates/events-search.php to /wp-content/themes/<your theme name>/plugins/events-manager/templates/events-search.php
    2. Open the new file and go to line 55 where you will see:

      <input type="text" name="em_search" class="em-events-search-text" value="<?php echo $s; ?>" onfocus="if(this.value=='<?php echo $s_default; ?>')this.value=''" onblur="if(this.value=='')this.value='<?php echo $s_default; ?>'" />
    3. Tweak the part that says onfocus and onblur
    4. Save the file

    Thanks! Silly me — I already had a template override for events-search. I changed this:
    <input type="submit" value="<?php echo $s_default; ?>" class="em-events-search-submit" />
    to this:
    <input type="submit" value="Search" class="em-events-search-submit" />
    Done!

    Latest version 5.2.4, you can easily do that using “Search button text” and “Text search label” at settings > formatting > search form

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Manager] remove word "search" from text input without removing it from sub’ is closed to new replies.