Support » Plugin: Woocommerce Radio Buttons » Any way to alter the 'Choose An Option…' text?

  • Resolved cokeyblokey


    Hi, nice plugin and it works fine for me.

    I would like to change the ‘Choose An Option…’ text found in the ‘variables.php’ file but I don;t want to lose the change when the plugin is updated.

    I thought about adding something to my themes functions file to replace the text. I found this code but I’m lost as to what to put in for the first argument in the add_filter:

    function replace_text_wps($text) {
            $text = str_replace('Choose An Option...', 'Choose An Option to see the price...', $text);
            return $text;
    add_filter('WHAT GOES HERE?','replace_text_wps');

    Is there a better way to do this?
    Any help much appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author DesignLoud


    Hi blokey, I would just copy the variables.php file from our plugin and put it in your themes -> woocommerce -> templates directory. Then change the text in that file. It should take priority over any of the other variables.php files found on your server.

    If that doesnt work then you can just change the text in the plugin, if there are any more updates they will be for compatibility reasons. But the above approach would be my suggestion.

    Hope that helps you. I dont think there are any actions or filters you can hook into for that but I may be wrong.

Viewing 1 replies (of 1 total)
  • The topic ‘Any way to alter the 'Choose An Option…' text?’ is closed to new replies.