Title: Embed Code Not Being Recognized
Last modified: December 18, 2020

---

# Embed Code Not Being Recognized

 *  Resolved [dragonsway76](https://wordpress.org/support/users/dragonsway76/)
 * (@dragonsway76)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/embed-code-not-being-recognized/)
 * I installed the plugin, followed the instructions for gutenberg to create a custom
   field called “tour_script”. The value of “tour_script” is:
 *     ```
       <script type="text/javascript">
       <!--
       // bootstraptour-bill-home.js file
       //css selector  .gb-container-1c23c1e6 > div:nth-child(1)
       (function($) {
   
           var tour = new Tour({
               backdrop: true,
               steps: [
               {   
                   element: ".gb-container-1c23c1e6 > div:nth-child(1)",
                   title: "Step 1 DP",
                   content: "Welcome, exit, resume, etc.."
               },  
               {   
                   element: "#iaa_avatarPreviewContainer",
                   title: "Step 2 DP",
                   content: "Avatar Intro"
               }]  
           }); 
   
           tour.init();
   
           // This will load on each page load or refresh.
           // You may want to change this behaviour according to your need.
           // e.g. show the tour on a click even of a custom notice or button
           // within admin panel dashboard.
           $( window ).load( function() {
               tour.start( true );
           });
       })( jQuery );
       -->
       </script>
       ```
   
 * I previously tested the script by inserting it in the page directly and by inserting
   it in the header before I found your plugin.
 * However, when I trace to place {{tour_script}} into my page… After a page update,
   when I view the new… the “tour_script” is not run, and “{{tour_script}}” appears
   like a <p> tag output.
 * Am I missing something?

Viewing 4 replies - 16 through 19 (of 19 total)

[←](https://wordpress.org/support/topic/embed-code-not-being-recognized/?output_format=md)
[1](https://wordpress.org/support/topic/embed-code-not-being-recognized/?output_format=md)
2

 *  Thread Starter [dragonsway76](https://wordpress.org/support/users/dragonsway76/)
 * (@dragonsway76)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/embed-code-not-being-recognized/page/2/#post-13820747)
 * Here you go:
 * > [View post on imgur.com](https://imgur.com/XW4RN7Z)
 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/embed-code-not-being-recognized/page/2/#post-13820778)
 * A-ha. That’s it (I wished I’d asked that question at the beginning!).
 * If you look at the field named ‘Keyword’, you’ll see that’s set to `code` – to
   correctly identify your embed request, it has to begin with the keyword.
 * So, rename your code in the meta box to `code_tour_script` and then put `{{code_tour_script}}`
   in your page.
 * Fingers crossed, that should work!
 *  Thread Starter [dragonsway76](https://wordpress.org/support/users/dragonsway76/)
 * (@dragonsway76)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/embed-code-not-being-recognized/page/2/#post-13820965)
 * Problem solved… no worries.. seems like “bonehead” errors all around (mostly 
   from me)… but pays to be a dog a with a bone, when chasing “bugs”…
 * thanks for the help!! This plugin save me a lot of time …
    -  This reply was modified 5 years, 5 months ago by [dragonsway76](https://wordpress.org/support/users/dragonsway76/).
 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/embed-code-not-being-recognized/page/2/#post-13821044)
 * Ah, no worries at all – I’m glad it’s fixed.
 * Happy holidays!

Viewing 4 replies - 16 through 19 (of 19 total)

[←](https://wordpress.org/support/topic/embed-code-not-being-recognized/?output_format=md)
[1](https://wordpress.org/support/topic/embed-code-not-being-recognized/?output_format=md)
2

The topic ‘Embed Code Not Being Recognized’ is closed to new replies.

 * ![](https://ps.w.org/simple-embed-code/assets/icon.svg?rev=3073981)
 * [Code Embed](https://wordpress.org/plugins/simple-embed-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-embed-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-embed-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-embed-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-embed-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-embed-code/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 19 replies
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/embed-code-not-being-recognized/page/2/#post-13821044)
 * Status: resolved