Home Forums Luzuk LZ Fashion Ecommerce Translate text in search products

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #33671

    Hello.
    In my site (https://autoservicionuevavida.com) we need to translate the text (Search Products…) in the search box upside to Spanish (Buscar productos…). ¿How can I do this?.
    Thanks in advance.

    #33680
    User Support
    Participant

    Hello
    could you please send us your wordpress username and password ? we will translate the text.
    Thank you

    #33686

    Can you send me the instructions please? I’m sysadmin and I know a little PHP. Thanks

    #33688
    User Support
    Participant

    Hello
    go to dashboard >> appearance >> theme editor >> open the theme header.php file >> go to line no 162 there you will find the text in English and you may replace with anything.
    Thank you

    #33694

    Finally the solution is to edit lines number 162 and 163:

    <label class=”screen-reader-text” for=”s”><?php _e( ‘Buscar productos…’, ‘woocommerce’ ); ?></label>
    <input type=”search” class=”search-field” placeholder=”<?php echo esc_attr_x( ‘Buscar product
    os…’, ‘placeholder’, ‘woocommerce’ ); ?>” value=”<?php echo get_search_query(); ?>” name=”s” title=”<?php echo esc_attr_x( ‘Buscar productos…’, ‘label’, ‘woocommerc
    e’ ); ?>” />

    I changed Search Products for Buscar productos.

    #33697

    Thanks for your help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.