-
AuthorPosts
-
July 8, 2020 at 11:57 am #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ëlJuly 9, 2020 at 5:01 am #1229046Hey Raphaël,
Could you post a link to where we can see the actual elements please?
Best regards,
RikardJuly 9, 2020 at 5:51 pm #1229224thanks 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 !
July 11, 2020 at 4:19 am #1229512Hi,
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,
RikardJuly 16, 2020 at 2:55 pm #1230933The webshop will be on air soon, I will post the link here once it’s available
thanksJuly 17, 2020 at 12:49 am #1231067Hi 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,
NikkoJuly 29, 2020 at 1:03 am #1233817Hi 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 !
July 30, 2020 at 8:18 am #1234095Hi 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,
NikkoJuly 31, 2020 at 10:13 am #1234336thanks Nikko !
August 3, 2020 at 7:01 am #1234724 -
AuthorPosts
- You must be logged in to reply to this topic.