-
AuthorPosts
-
June 24, 2018 at 12:33 pm #977136
Hello,
may you can help me.
I want to change the placeholder content from “Produkt suchen” into “Anbieter suchen” in my woocommerce sidbar widget.
Thank you!”
June 24, 2018 at 7:35 pm #977180Hey Stefan,
Please try the plugin Say what?
When activated, it asks for:
1: Original string — text you are translating.
2: Text domain — woocommerce
3: Text you want to displayHere’s some more info on this:
https://plugins.leewillis.co.uk/doc_post/replacing-wordpress-strings-context/Best regards,
MikeJune 25, 2018 at 12:35 pm #977407Hello Mike,
thank you for helping – but it doesn’t work. Maybe the Text domain is wrong. Do you know how i can find the right Text domain for the product search field?
June 25, 2018 at 1:18 pm #977433Hi Luisgasser,
Why not, it’s the WooCommerce page. Is it not working when you add the translation?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 25, 2018 at 1:30 pm #977445Thank you – so i will logout myself
June 25, 2018 at 2:28 pm #977489Hi Luisgasser,
Best regards,
VictoriaJune 25, 2018 at 2:28 pm #977490Hi Luisgasser,
Best regards,
VictoriaJune 25, 2018 at 2:36 pm #977500Hi, no i’m not blocking locations. The site runs on Safari, Firefox and Chrome – my you have some hard browser settings?
June 26, 2018 at 4:20 am #977763Hi,
The text domain should have be correct, but perhaps it’s not working since it’s a placeholder.
I tested this script and found it to be working, but I can’t add it to your child theme functions.php via the WordPress editor, please try adding it via ftp:function change_placeholder(){ ?> <script> jQuery(window).load(function(){ jQuery('#woocommerce-product-search-field-0.search-field').attr('placeholder','Anbieter suchen'); }); </script> <?php } add_action('wp_footer', 'change_placeholder');
Best regards,
MikeJune 26, 2018 at 9:07 am #977821Hi Mike, great! Via ftp it works fine.
Thank you for helping!
June 26, 2018 at 12:10 pm #977888Another thing, is it also posible to change “Ähnliche Produkte” into “Ähnliche Anbieter” in Woocommerce?
June 26, 2018 at 12:33 pm #977899Hi,
That should be possible, maybe this thread will help you out? https://stackoverflow.com/questions/27259838/woocommerce-change-related-products-text
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.