• Hi,

    I want to know

    How to Change Placeholder text of Zip code at Cart page,it changes when I click the zip code filed.

    suppose before clicking the zip code fieled it is “POSTCODE” and when I click in zip code field ,placeholder text changes to “postcode” ,I want to have same placeholder whether clicked or not in zip code field

    Regards

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • The clicked field comes from your locale-based JavaScript and may be quite difficult to change. The unclicked field should be changeable with this code:

    <?php
      // Change default checkout fields placeholders
      // code goes in functions.php for your child theme
      add_filter('woocommerce_checkout_fields', 'custom_override_placeholders')
      function custom_override_placeholders($address_fields) {
        $address_fields['postcode']['placeholder'] = 'postcode';
        return $address_fields;
      }

    However, a user from another locale may see something different.

Viewing 1 replies (of 1 total)
  • The topic ‘How to Change Placeholder text of Zip code at Cart page’ is closed to new replies.