Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1088205
    dabbevdbrand
    Participant

    Hi guys, my search box now says: type and press enter. Is there a way for me to change that text?

    Thanks!

    #1088392
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Then add the code below on your child theme’s functions.php file.

    // 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( 'LOREM IPSUM DOLOR', '__x__' ); ?></label>
                  <input type="text" id="s" class="search-query cfc-h-tx center-text tt-upper" name="s">
                </form>
              </div>
            </div>
          </div>
    
          <?php
    
        endif;
    
      }
      add_action( 'x_before_site_end', 'x_navbar_searchform_overlay' );
    endif;

    Look for the LOREM IPSUM DOLOR on the code and replace that with your own phrase.

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-1088205 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>