Hi,
I've got two forms on a site and for the styling of one of them I use <form action="#" method="post" class="contact"> so class="contact" to style it. What I want to do is be able to add this into one of the forms but not the other.
The only thing I've seen that adds a class to the form is this
// Add class to contact form
add_filter( 'wpcf7_form_class_attr', 'your_custom_form_class_attr' );
function your_custom_form_class_attr( $class ) {
$class .= 'contact';
return $class;
}
But that adds it to all the forms, is there a simple way I can add <form class="contact"> to the one form?
Thanks
Josh