Where to put the code snippets?
-
Not sure if anyone else is as clueless as me, but I spent nearly a day trying to figure out where to put this code mentioned in the instructions.
do_action('google_invre_render_widget_action');
I know the text says “put the code in any form”, but it still didn’t make any sense to me. Finally, after looking at the “Contact Form” submenu in the Contact Form 7 plugin menu, I thought “maybe I can make a shortcode to stick in the CF7 form”. I quickly coded it, and suddenly realized I was doing too much work. The answer was to put this anywhere in the form …
<?php do_action('google_invre_render_widget_action'); ?>
Finally, after a day of struggling … it works! BTW, it is stunning how much code this plugin adds to the html page.
- The topic ‘Where to put the code snippets?’ is closed to new replies.