Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1228831

    hi,

    I am customising a 4 column footer with WooCommerce.

    I have a double question with the “product search” widget :
    – how can I change the text in the search area (to reduce it actually) ?

    – for some reason the default search product title is about one line below the other column titles.
    I have tried to take it out completely and do it again but it’s always shifted by one line (below).
    any idea of what can cause that ?

    thank you !
    Raphaël

    #1229046

    Hey Raphaël,

    Could you post a link to where we can see the actual elements please?

    Best regards,
    Rikard

    #1229224

    thanks for your answer,
    I have been able to correct the one line shift. so that part is ok now.

    I would still like to be able to change the default text in the search bar though.
    the page will be published next week, I will let you know when it’s visible.

    thanks !

    #1229512

    Hi,

    Great, I’m glad that you solved one problem. We would need more context in order to help you out though, could you post a link to where we can see the search bar please?

    Best regards,
    Rikard

    #1230933

    The webshop will be on air soon, I will post the link here once it’s available
    thanks

    #1231067

    Hi noirjambon,

    Is it possible to give us access? so we can look into it.
    You can post the login credentials in private content.

    Best regards,
    Nikko

    #1233817

    Hi Nikko,

    it’s now online, please see below,
    just to rephrase what I asked above,
    I just would like to be able to change the default text in the search area (in this case it’s “recherche de produits”)

    thanks !

    #1234095

    Hi noirjambon,

    function my_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Search products…' :
                $translated_text = __( 'Search…', 'woocommerce' );
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'my_text_strings', 20, 3 );

    Just replace:

    Search…

    in

    $translated_text = __( 'Search…', 'woocommerce' );

    Best regards,
    Nikko

    #1234336

    thanks Nikko !

    #1234724

    Hi,

    Great, I’m glad that Nikko could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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