Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1346114
    Gerald E
    Participant

    Hi,

    The search function is important to my site and i would like to have only 1 title of

    Default is (here in german):
    Suchergebnisse
    Unten sehen Sie alle Ergebnisse zu Ihrer Suche nach “test”

    Screnshot here: https://www.evernote.com/l/AKV839sYapZNvJ1Fv76Y9PXp8ZnYUG6iI2c

    INSTEAD i would love to have 1 line only with the kewyord:

    Suchergebnisse für “test”

    How can i do this pls?

    Thanks a lot in advance!
    G

    #1346136
    Christian
    Moderator

    Hey G,

    Please copy _landmark-header.php located in wp-content\themes\x\framework\views\integrity to the same folder in your child theme wp-content\themes\x-child\framework\views\integrity. Open the copied file in a code or text editor and find this line

    <?php elseif ( is_search() ) : ?>

    Below it, you’ll see this code:

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "Below you'll see everything we could locate for your search of ", '__x__' ); echo '<strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></p>
      </header>

    Change it to:

      <header class="x-header-landmark x-container max width">
        <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); echo 'für <strong>&ldquo;'; the_search_query(); echo '&rdquo;</strong>'; ?></span></h1>
      </header>

    Or, you could add the “for” word with the Search Results word like:

    _e( 'Search Results for', '__x__' );

    so you could translate it and remove “für” before the search query code.

    Thanks.

    #1346280
    Gerald E
    Participant

    Thank you so much!

    #1346298
    Paul R
    Moderator

    You’re welcome! 🙂

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