WordPress Embed Guide

Embed PraiseLane testimonials on your WordPress site using the Custom HTML block or theme editor.

Setup Steps

1

Open the WordPress editor

Navigate to the page or post where you want to display testimonials. Open it in the Block Editor (Gutenberg).

2

Add a Custom HTML block

Click the + button to add a new block, search for "Custom HTML", and select it.

3

Paste the embed code

Paste your PraiseLane embed snippet into the Custom HTML block.

<!-- PraiseLane Testimonials -->
<script
  src="https://yourapp.com/embed.min.js"
  data-project="your-project-slug"
  defer>
</script>
4

For site-wide display (header/footer)

To show testimonial notifications on every page, go to Appearance > Theme Editor > footer.php (or use a plugin like "Insert Headers and Footers") and add the script before </body>.

<!-- Add before </body> in footer.php -->
<script
  src="https://yourapp.com/embed.min.js"
  data-project="your-project-slug"
  defer>
</script>

If your theme uses Full Site Editing, add the Custom HTML block to your footer template part instead.

5

Configure allowed domains

In PraiseLane project settings, add your WordPress domain (e.g., yourblog.com) to the allowed domains list.

Is My Embed Working?

Run through this checklist to verify your embed is set up correctly:

  • Custom HTML block is published (not draft)
  • Domain is in allowed domains in PraiseLane settings
  • Cache is cleared after adding the embed
  • No security plugins blocking external scripts
  • At least one approved testimonial exists
  • Widget is visible in Preview mode

Troubleshooting

Script stripped from Custom HTML block

Some security plugins strip script tags. Try adding the code via a plugin like "Insert Headers and Footers" or "WPCode" instead.

Widget not loading on cached pages

If you use a caching plugin (WP Super Cache, W3 Total Cache), clear the cache after adding the embed code.

CSP (Content Security Policy) blocking the script

If your WordPress site has strict CSP headers, add your PraiseLane domain to the script-src directive.

Other Platform Guides