WP UI - Tabs, Accordions, Sliders
[resolved] WP UI with contact form 7 (shortcodes inside the contact (4 posts)

  1. zouper
    Posted 4 years ago #

    There seems to be a problem with contact forms 7. I cannot add a shortcode IN the contact form. SO what I want to do is have a spoiler inside the contact form. There are checkboxes which have a text under them and I want to hide that content to be revealed upon click. When I insert teh shortcode, all I see in the end is...the shortcode.

    Any ideas on that?


  2. zouper
    Posted 4 years ago #

    manage to solve it with an add_filter from the creator of contact forms. You just have to add this line:

    add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' );

    function mycustom_wpcf7_form_elements( $form ) {
    $form = do_shortcode( $form );

    return $form;

    in the functions.php file in the contact form 7 plugin (plugins>editor>select the contact form 7 plugin from the drop down menu on the right top side>find function.php file+edit)

    Then everything works like a charm!

    Have a nice day!

    p.s.: I do not consider anyone stupid, just some of us are just beginning so I thought better to play stupid rather than consider everyone knows everything upon birth.

  3. kavingray
    Plugin Author

    Posted 4 years ago #

    Hi Zouper,

    Glad you sorted out this issue, anyway my two cents - You can also implement the wp ui structures with HTML, which i think, would be more comfortable than editing functions.php . Below paste contains the sample markup for each widget.


    Apologies for the late reply.

  4. manakuke
    Posted 4 years ago #

    Thanks, kavin! I'm using WordPress Form Manager, which was not submitting any forms in IE9. implementing the plugin using the HTML structures vs the shortcode solved the problem for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP UI - Tabs, Accordions, Sliders
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic