Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Where to put the code snippets?

$
0
0

Replies: 0

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.

  • This topic was modified 10 minutes ago by mirgcire.
  • This topic was modified 9 minutes ago by mirgcire.

Viewing all articles
Browse latest Browse all 59525

Trending Articles