Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1039293
    Doudoux
    Participant

    Hey there,
    I like your navbar search in icon an I integrated the widget in my navbar. Now I am wondering if I can replace the english text by a german search-text. Can I somehow create my own text which will be seen after clicking on the search icon in my navbar?
    Have a nice day!
    Doudoux

    #1039318
    Doudoux
    Participant

    Another issue is that I would like to have a German text instead of: “Nothing to Show Right Now
    It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there.”
    This text appears after typing a tag which can’t be found in my blog.

    #1039427
    Lely
    Moderator

    Hi Doudoux,

    Thanks for posting in. Are you referring to Type and Press “enter” to Search text? If yes,
    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. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices. Then add the following code on your child’s theme’s functions.php code:

    
    // 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">
                </form>
              </div>
            </div>
          </div>
    
          <?php
    
        endif;
    
      }
      add_action( 'x_before_site_end', 'x_navbar_searchform_overlay' );
    endif;
    

    Look for this text from the code above and change accordingly:Type and Press “enter” to Search

    Then for the next one, please copy, _content-none.php from wp-content/themes/x/framework/views/global/ and paste it on the same folder on your child theme here: wp-content/themes/x-child/framework/views/global/. Then open the copied file and update the text accordingly.

    Hope this helps.

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