I need to change the language from English to Norwegian in a form I am working on.
I have tried to do so by using the filters that I found on the Gravity Forms website.
I added the following code to the functions.php file:
<?php
add_filter("gform_product_price", "set_price_label", 10, 2);
function set_price_label($sublabel, $form_id){
return "Pris:";
}
?>
When saving the file and viewing the results, the website looks good. The change is made...
However, next time I log into the Wordpress I get the white screen of death.
I then have to replace the modified funcions.php file with the original one, and the WP dashboard returns to normal again.
What am I doing wrong?
The file looks like this: