With the X Theme, I am aware of the default search functionality in the navbar or by using the [search] shortcode for anywhere. My question, is there a way to add a button after the search bar? Many older users are not aware that you need to press the enter key to search. I want to add a search or submit button after the search field so those users can simply click the submit button. Any ideas?
Hi there,
You could add a submit button to the search widget by adding this code to the Global JS area:
jQuery('#searchform').append('<input type="submit" value="Search">');
However, you will have to write some custom CSS to further style the search for because it is designed to submit on enter where the search box fills the entire width of the content area.
Hope this helps you get started.
This is perfect! Not a problem with the css, I was going to have to do that anyhow. Thanks for quick reply and awesome fix!
You are most welcome. 
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.