Title: Adding text/html between title and fields
Last modified: November 7, 2019

---

# Adding text/html between title and fields

 *  Resolved [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/adding-text-html-between-title-and-fields/)
 * Is it possible/how would I add some text or HTML between the title of an admin
   page and the fields on the page. I’d like to add a description for a child page
   or, possibly, embed some HTML.
 * Thanks!

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [6 years, 7 months ago](https://wordpress.org/support/topic/adding-text-html-between-title-and-fields/#post-12107231)
 * I’d check out and tinker with some of the field parameters over at [https://github.com/CMB2/CMB2/wiki/Field-Parameters](https://github.com/CMB2/CMB2/wiki/Field-Parameters)
 * Specifically this group: [https://github.com/CMB2/CMB2/wiki/Field-Parameters#before-after-before_row-after_row-before_field-after_field](https://github.com/CMB2/CMB2/wiki/Field-Parameters#before-after-before_row-after_row-before_field-after_field)
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/adding-text-html-between-title-and-fields/#post-12107998)
 * That works well for given fields. Is there any way to hook into the option page
   title itself? I tried a bunch of the before_ and after_ options with no luck 
   on the new_cmb2_box call.
 * Thanks!
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [6 years, 7 months ago](https://wordpress.org/support/topic/adding-text-html-between-title-and-fields/#post-12108406)
 * hmm
 * I believe you could potentially handle that with your own custom display callback,
   but that’s a fair amount of potential work.
 * I’m also seeing these hooks that are before the output of the forms, but not 
   sure exactly where in the context it’d show to say the options page title:
 *     ```
       /**
        * Hook before form table begins
        *
        * @param array  $cmb_id      The current box ID.
        * @param int    $object_id   The ID of the current object.
        * @param string $object_type The type of object you are working with.
        *                            Usually <code>post</code> (this applies to all post-types).
        *                            Could also be <code>comment</code>, <code>user</code> or <code>options-page</code>.
        * @param array  $cmb         This CMB2 object.
        */
       do_action( 'cmb2_before_form', $this->cmb_id, $object_id, $object_type, $this );
   
       /**
        * Hook before form table begins
        *
        * The first dynamic portion of the hook name, $object_type, is the type of object
        * you are working with. Usually <code>post</code> (this applies to all post-types).
        * Could also be <code>comment</code>, <code>user</code> or <code>options-page</code>.
        *
        * The second dynamic portion of the hook name, $this->cmb_id, is the meta_box id.
        *
        * @param array  $cmb_id      The current box ID
        * @param int    $object_id   The ID of the current object
        * @param array  $cmb         This CMB2 object
        */
       do_action( "cmb2_before_{$object_type}_form_{$this->cmb_id}", $object_id, $this );
       ```
   
 * Worth trying.

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

The topic ‘Adding text/html between title and fields’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/adding-text-html-between-title-and-fields/#post-12108406)
 * Status: resolved