Hey guys
I have a basic sidebar callback form and I am trying to get it to show the form title and description depending on the country url, for example /en or /es, etc.
The code below shows the title specified in the WP widget which is "We can call you" and a line of description text.
I have an idea what to do but not sure, maybe set $display_description and $display_title and use elsif?
I realise I will have to have translated text for each language.
Thanks
shmideo
if($display_title || $display_description){ $form_string .= " <div class='gform_heading'>"; if($display_title){ $form_string .= " <h3 class='gform_title'>" . $form['title'] . " </h3>"; } if($display_description){ $form_string .= " <span class='gform_description'>" . rgar($form,'description') ."</span>"; } $form_string .= " </div>"; }