Trouble changing label
-
Hi,
we have our site created by an agency: https://alfapeople.com/ but we are the ones that have to update the site and I don’t have contact with the agency anymore.We use different forms on the site and all of them are using an action link to send information to Dynamics CRM.
In all pages of the site, in the bottom, I have one form with a check box with the label: Request Callback. I need to change the text to “Subscribe to newsletter”.
Even though I’ve tried only to change this text in the functions.php file, the text doesn’t change but disappears.How can I just change the label?
The form was added directly in the functions.php file as below:
function get_in_touch_shortcode( $atts, $content = null ) {
global $post;
$atts = shortcode_atts( array( “action” => ‘https://analytics.clickdimensions.com/forms/h/aTNFKSmikOUSt9LN52nrow’ ) , $atts);
$home = get_page_by_title(“Home”);
return ‘<form class=”wpcf7-form get-in-touch-form custom-form” action=”‘.$atts[action].'” method=”post”>
<p class=”formrow-text”><span class=”wpcf7-form-control-wrap first-name”><input id=”txtfirstname” class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required first-name required” name=”txtfirstname” size=”40″ type=”text” value=”” placeholder=”‘.get_field(“first_name”, $home->ID).’*” /></span></p>
<p class=”formrow-text”><span class=”wpcf7-form-control-wrap last-name”><input id=”txtlastname” class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required last-name required” name=”txtlastname” size=”40″ type=”text” value=”” placeholder=”‘.get_field(“last_name”, $home->ID).’*” /></span></p>
<p class=”formrow-text”><span class=”wpcf7-form-control-wrap email”><input id=”Email” class=”wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email email required” name=”Email” size=”40″ type=”email” value=”” placeholder=”‘.get_field(“email”, $home->ID).’*” /></span></p>
<p class=”formrow-text”><span class=”wpcf7-form-control-wrap company”><input id=”txtcompanyname” class=”wpcf7-form-control wpcf7-text company” name=”txtcompanyname” size=”40″ type=”text” value=”” placeholder=”‘.get_field(“company”, $home->ID).'” /></span></p>
<p class=”formrow-text”><span class=”wpcf7-form-control-wrap job-title”><input id=”txtjobtitle” class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required job-title” name=”txtjobtitle” size=”40″ type=”text” value=”” placeholder=”‘.get_field(“job_title”, $home->ID).'” /></span></p>
<p class=”formrow-text”><span class=”wpcf7-form-control-wrap phone”><input id=”mobphone” class=”wpcf7-form-control wpcf7-text wpcf7-tel wpcf7-validates-as-required wpcf7-validates-as-tel phone required” name=”mobphone” size=”40″ type=”tel” value=”” placeholder=”‘.get_field(“telephone”, $home->ID).’*” /></span></p>
<p class=”formrow-textarea”><span class=”wpcf7-form-control-wrap your-message”><textarea id=”txtacomments” class=”wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required required” maxlength=”2000″ cols=”40″ name=”txtacomments” rows=”10″ placeholder=”‘.get_field(“message”, $home->ID).’*”></textarea></span></p>
<p class=”text-center”><span class=”wpcf7-form-control-wrap checkbox-229″><span class=”wpcf7-form-control wpcf7-checkbox checkbox-229″><span class=”wpcf7-list-item first last”><input id=”requestcallback” name=”requestcallback” type=”checkbox” value=”Yes” /> <span class=”wpcf7-list-item-label”>’.get_field(“request_callback”, $home->ID).'</span></span></span></span></p>
<input type=”hidden” name=”pageurl” id=”pageurl” value=”‘.get_permalink($post->ID).'” />
<input type=”hidden” name=”country” id=”country” value=”‘.get_country_code().'” />
<p class=”text-center”><input class=”wpcf7-form-control wpcf7-submit” type=”submit” value=”‘.get_field(“submit”, $home->ID).'” /></p>
</form>’;
}
add_shortcode( ‘get-in-touch-form’, ‘get_in_touch_shortcode’ );
- The topic ‘Trouble changing label’ is closed to new replies.