• Is there any action to change the search form action? We are using sales force to track all the queries and want to change it to the URL they provided to us.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Hiya Cezar,

    It depends on your theme. If it calls get_search_form(), you can use the ‘get_search_form’ filter to alter the HTML that will be output. Or you can define your own search form and place it in a file named searchform.php, kept in the theme’s or child theme’s main folder.

    If your theme does not call get_search_form(), the solution depends on what it does do instead.

    Thread Starter Cezar Ayran

    (@ayrancd)

    @bcworkz tks, I found that function my only thing is that they have multiple search forms… and some have bunch of javascript that I don’t want to touch I just wanted to change the action but I think I am going to change it with javascript once the page is loaded.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change form action’ is closed to new replies.