How to translate seach… inside seach form on the blog

This topic has 10 replies, 2 voices, and was last updated 9 years, 6 months ago ago by Eva Kemp

  • Avatar: groubee
    groubee
    Participant
    May 27, 2015 at 10:56

    Hi

    I cant translate “seach…” inside seach form on the blog? it must be hardcoded.

    Where do I translate “seach…” inside seach form on the blog

    See: https://www.dropbox.com/s/4s22m8rookraos9/translate-seach-inside-form.jpg?dl=0
    or the page here:
    http://www.smooff.net/10-grunde-til-at-stoppe-med-at-ryge/

    Best regards
    Tonny

    9 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 27, 2015 at 12:49

    Hello,

    You can translate it in the file wp-content/themes/woopress/searchform.php (line 12).

    Regards,
    Eva Kemp.

    Avatar: groubee
    groubee
    Participant
    May 27, 2015 at 15:34

    hmm it does not work here at all 🙁

    This is the page now: http://www.smooff.net/artikler/

    I tried to translate “Search…” into “Søg…” which should be ‘S& oslash;g…’ but the page have stop loading the content?

    And this is the code:

    <?php
    /**
    * The template for displaying search forms
    *
    */
    ?>

    <form action=”<?php echo home_url( ‘/’ ); ?>” id=”searchform” class=”hide-input” method=”get”>
    <div class=”form-horizontal modal-form”>
    <div class=”form-group has-border”>
    <div class=”col-xs-10″>
    <input type=”text” name=”s” id=”s” class=”form-control” placeholder=”<?php esc_attr_e( ‘S& oslash;g…’, ETHEME_DOMAIN ); ?>” />
    <input type=”hidden” name=”post_type” value=”post” />
    </div>
    </div>
    <div class=”form-group form-button”>
    <button type=”submit” class=”btn medium-btn btn-black”><?php esc_attr_e( ‘Search’, ETHEME_DOMAIN ); ?></button>
    </div>
    </div>
    </form>

    Avatar: Eva
    Eva Kemp
    Support staff
    May 27, 2015 at 16:04

    Hello,

    Please provide us with FTP credentials.

    Regards,
    Eva Kemp.

    Avatar: groubee
    groubee
    Participant
    May 27, 2015 at 16:07

    here you go

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    May 27, 2015 at 16:10

    Hello,

    I’ve edited the code.
    Please check now.

    Regards,
    Eva Kemp.

    Avatar: groubee
    groubee
    Participant
    May 27, 2015 at 16:30

    Yes thanks a lot – it works!

    But now it shows: “Search results for” and it is translated in the language file, but is is not displayed in the header/breadcrumb?? what did I miss

    Avatar: Eva
    Eva Kemp
    Support staff
    May 27, 2015 at 18:01

    Hello,

    Please edit the file wp-content/themes/woopress/framework/theme-functions.php (line 3303).

    Regards,
    Eva Kemp.

    Avatar: groubee
    groubee
    Participant
    May 27, 2015 at 20:50

    Thanks – it works

    Avatar: Eva
    Eva Kemp
    Support staff
    May 27, 2015 at 21:01

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘how to translate seach… inside seach form on the blog’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.