Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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!”

    #977180

    Hey 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 display

    Here’s some more info on this:
    https://plugins.leewillis.co.uk/doc_post/replacing-wordpress-strings-context/

    Overriding the product search box (widget)

    Best regards,
    Mike

    #977407

    Hello 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?

    #977433

    Hi 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,
    Victoria

    #977445

    Thank you – so i will logout myself

    #977489

    Hi Luisgasser,

    Best regards,
    Victoria

    #977490

    Hi Luisgasser,

    Best regards,
    Victoria

    #977500

    Hi, no i’m not blocking locations. The site runs on Safari, Firefox and Chrome – my you have some hard browser settings?

    #977763

    Hi,
    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,
    Mike

    #977821

    Hi Mike, great! Via ftp it works fine.

    Thank you for helping!

    #977888

    Another thing, is it also posible to change “Ähnliche Produkte” into “Ähnliche Anbieter” in Woocommerce?

    #977899

    Hi,

    That should be possible, maybe this thread will help you out? https://stackoverflow.com/questions/27259838/woocommerce-change-related-products-text

    Best regards,
    Rikard

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