• Hey guys,

    I am using custom theme developed by me.
    When I switched the language from English to Dutch, Gtranslater plugin remove woocommerce cart price. I tried to add notranslate class thru js, but its not working, can you plz. help me.

    <?php wp_footer();?>
    
    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(".woocommerce-Price-amount").addClass('notranslate');
    });
    </script>
    
    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(".woocommerce-page.woocommerce-checkout form").addClass('notranslate');
    });
    </script>
    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    jQuery(".woocommerce-Price-amount, .product-total").addClass('notranslate');
    });
    </script>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter princeggn

    (@princeggn)

    It’s resolved with this code.

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery(".woocommerce-Price-amount").addClass('notranslate');
    });
    </script>
    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery(".woocommerce-page.woocommerce-checkout form").addClass('notranslate');
    });
    </script>

    Yup this code is working
    tested

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery(".woocommerce-Price-amount").addClass('notranslate');
    });
    </script>
    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery(".woocommerce-page.woocommerce-checkout form").addClass('notranslate');
    });
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘class=”notranslate” is not working’ is closed to new replies.