• Resolved Worthdesigning

    (@auntypizza)


    Hi – I need to have HTML in the Form Description – want to do some bolding.

    It disappears when I try so must be stripped out? How do I change this?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @auntypizza,

    We don’t allow HTML in the form description.

    You could add your description above the form (e.g. in a text widget or in the content above the shortcode).

    Or you could use our filter 'yikes-mailchimp-form-description', like this:

    add_filter( 'yikes-mailchimp-form-description', 'yikes_mailchimp_customize_form_description', 10, 2 );
    
    function yikes_mailchimp_customize_form_description( $description, $form_id ) {
    	if ( (int) $form_id === 1 ) {
    		return '<strong>this is my custom form description</strong>';
    	}
    
    	return $description;
    }

    Cheers,
    Kevin.

    Thread Starter Worthdesigning

    (@auntypizza)

    Thanks – the filter worked nicely 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML in the Form Description’ is closed to new replies.