PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Filter the gform_heading div?

  1. Is there a way to filter the output of the gform_heading div? I would like to add some content that should be output with all my forms but don't see a hook or filter that allows this.


    Posted 12 years ago on Sunday February 19, 2012 | Permalink
  2. I figured how to make this work for us. I'm using the "gform_pre_render" filter and appending our custom content to $form["description"]

    If anyone else is interested, here's a quick sample of the complete code:

    add_filter("gform_pre_render", "add_custom_content");
    function add_custom_content($form){
    	$form["description"] .= '<img src="custom-image.png" alt="An image that will be inserted in the description of all forms." />';
      return $form;
    Posted 12 years ago on Monday February 20, 2012 | Permalink