Support

Home Forums Event Espresso Premium Search Box

Search Box

Posted: June 24, 2013 at 1:54 pm

Viewing 1 reply thread


MsBecca

June 24, 2013 at 1:54 pm

Hi,

I placed the shortcut [EVENT_SEARCH] in the widget.  It works just fine however the button is below the form field.  Is there a way to make the button appear at the end of the search field instead of under it.  Also, is there a way to place text in the search box by default.  For instance “Search by event name, city, etc.”  Thanks.


Josh

  • Support Staff

June 24, 2013 at 5:26 pm

Hi there,

To make the button appear next to the form field there would need to be enough room. Can you post a link to the page so we can take a look?

Basically it could be done by setting the button to display: inline and the width of the field to be really narrow with CSS, but there would need to be enough room or the button would go to the next line anyway.

You can place text in the search box by default by adding a bit of jQuery to the page. Here is some example code:

<script>
jQuery(document).ready(function($){
var input = $( "#ee_autocomplete" );
input.val( input.val() + "search by event name, city, etc." );
});
</script>
Viewing 1 reply thread

The support post ‘Search Box’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso