If you want to use other shortcodes inside Contact form 7- forms in WordPress? Use following code in your theme’s functions.php file OR in site specific plugin.
1 2 3 4 5 6 7 | add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' ); function mycustom_wpcf7_form_elements( $form ) { $form = do_shortcode( $form ); return $form; } |
That allows you to drop shortcodes directly into CF7. Second is to add the Accordion in manually with HTML in the contact form, like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <!-- begin class .wp-accordion --> <div class="wp-accordion wpui-light"> <!-- First tab's panel --> <h3 class="wp-tab-title">Tab 1</h3> <!-- First tab's contents --> <div class="wp-tab-content"> All the contents of first tab goes here.... </div><!-- end first tab --> <!-- Like so, Second panel --> <h3 class="wp-tab-title">Tab 2</h3> <div class="wp-tab-content"> Contents of the second tab </div> </div> <!-- end class wp-accordion --> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.