How to display fallback value if the field value is empty.

Empty fields are hidden on the profile form "view" mode. It may look weird. You may use code snippets below to display the fallback value "--" or the default value for empty fields. It works only for the "view" mode. 

Just add the code snippet you prefer to the functions.php file in the active theme directory.

Code example 01 displays the fallback value "--" .

Code example 02 displays the default value.

NOTE: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.


Layout example - Profile with empty fields.