Change default search to Ajax Search Pro

Hi,

regarding to an older ticket (which is closed now)

I stil have this issues.

I’ll put the data to access into the secure note and ask for your help.

Kindly regards,
Ralph

Hello Ralph,

Please provide access to this authentication prompt.

Thanks.

I put it in the secure note as .htaccess login.

Hello Ralph,

Are you referring to this Search Icon?

That is using a search form that is hard coded for the navbar. You will need this override code to be able to modify the searchform:

// Navbar Searchform Popup
// =============================================================================

if ( ! function_exists( 'x_navbar_searchform_overlay' ) ) :
  function x_navbar_searchform_overlay() {

    if ( x_get_option( 'x_header_search_enable' ) == '1' ) :

      ?>

      <div class="x-searchform-overlay">
        <div class="x-searchform-overlay-inner">
          <div class="x-container max width">
            <form method="get" id="searchform" class="form-search center-text" action="<?php echo esc_url( home_url( '/' ) ); ?>">
              <label for="s" class="cfc-h-tx tt-upper"><?php _e( 'Type and Press &ldquo;enter&rdquo; to Search', '__x__' ); ?></label>
              <input type="text" id="s" class="search-query cfc-h-tx center-text tt-upper" name="s">
               <?php do_action( 'wpml_add_language_form_field' ) ?>
            </form>
          </div>
        </div>
      </div>

      <?php

    endif;

  }
  add_action( 'x_before_site_end', 'x_navbar_searchform_overlay' );
endif;

Be advised that custom coding is beyond the scope of our support under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.