Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1418264

    Hi,

    I’ve tried this code in the functions.php I’ve found in your forum. That doesn’t work for me.

    function custom_related_products(){
    ?>
    <script>
    (function($){
    $(document).ready(function(){
    $(‘.related.products h2’).each(function() {
    var text = $(this).text();
    $(this).text(text.replace(‘Related products’, ‘Weitere Angebote’));
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘custom_related_products’);

    Thanks for your help.

    #1418266

    I found a solution with the plugin wt-woocommerce-related-products/

    You can close the thread, thanks

    #1418321

    Hi,

    Great! Glad to know that you have managed to find a working solution. Please feel free to open another thread when you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change related products (ähnliche Produkte) text’ is closed to new replies.