default text "choose category"

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #58873
      sandohkai
      Participant

      Hello

      i am using this shortcode for my store listing [wcfm_stores map=”” theme=”simple” sidebar=”” radius=”yes” per_row=”4″ has_orderby=””]
      But i want to change this default text “change category” Can you tell me how to change this default texte ?

      Thanks

    • #59126
      WCFM Forum
      Keymaster

      Hi,

      Please add this code snippet to your child theme’s functions.php –

      function wcfm_custom_translate_text( $translated ) {
      	$translated = str_ireplace( 'Choose category', 'Change Category', $translated );
      	$translated = str_ireplace( 'choose category', 'Change Category', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_translate_text');
      add_filter('ngettext', 'wcfm_custom_translate_text');

      Thank You

Viewing 1 reply thread
  • The topic ‘default text "choose category"’ is closed to new replies.