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 15 replies - 1 through 15 (of 19 total)

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

 *  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/#post-13809224)
 * Is it just a normal paragraph block that you’re putting `{{tour_script}}` into?
 * Are you able to provide a link to the page so that I can see how it appears?
 *  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/#post-13810806)
 * I tried pasting {{tour_script}} into a normal paragraph block and a custom html
   block… output for both are {{tour_script}}.
 * I develop in a local LAMP, so no url.. any suggestions?
 *  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/#post-13811464)
 * That should have worked. Hmm.
 * Can you try calling it `tourscript` instead (i.e. without the underscore)? You’ll
   need to change the name both in the customer meta box and also in your page.
 * If that doesn’t work, can you drop a screenshot here of the meta box that you’ve
   set up? I just want to confirm that you’ve filled that out correctly.
 *  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/#post-13811793)
 * I followed your instructions, same problem:
 * output in webpage:
    [https://i.imgur.com/WLHp8gG.png](https://i.imgur.com/WLHp8gG.png)(
   source code confirms <p> tag
 * gutenberg custom field:
 * > [View post on imgur.com](https://imgur.com/rFzFe0i)
 * guntenberg content editor:
 * > [View post on imgur.com](https://imgur.com/4aiJQj7)
 * FYI, after testing this, I checked error and debug log.. found -zero- errors 
   from any plugin. Also I am on a WP MultiSite running 5.5.3
    -  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/#post-13811885)
 * That 3rd screenshot, I think, is relevant. That doesn’t look like the standard
   block editor page screen. What’s the `do_widget` shortcode in the top right, 
   for instance?
 *  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/#post-13811911)
 * Its not relevant as far as I know… it from this plugin
    [amr shortcode any widget](https://wordpress.org/plugins/amr-shortcode-any-widget/)
 * It how I place a custom nav menu on the page. Not in anyway related to bootstrap
   tour script that I am trying to run.
 *  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/#post-13812379)
 * Yeah, it’s not that shortcode itself that I’m querying it’s why it is there it
   is. Your screen layout for a page is not what you’d expect from a default WordPress
   setup.
 * I would expect the page title at the top, the content box underneath and the 
   block/document sidebar on the right. But your set-up is different.
 * My suspicion is that where you’re entering `{{tourscript}}` isn’t in the standard
   page content box – my plugin only works on that and if this is a field for something
   else, it won’t be picked up. Unfortunately, I’m not able to fully tell as you
   have it on a local installation.
 *  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/#post-13813122)
 * This 100% a standard screenlayout for wordpress… I simply cropped the the page
   title out of the screenshot as it wasn’t relevant.
 * > [View post on imgur.com](https://imgur.com/PCb49N3)
 * 
    full screenshot
 * As you can now see, this is a standard page content box. The plugin isn’t working
   properly.
 * FYI, this is my plugin list… see anything that may conflict?
    [https://pastebin.com/i2rvi1fN](https://pastebin.com/i2rvi1fN)
    -  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/#post-13813324)
 * Ah yes, that screenshot makes it clearer.
 * So, why is the box containing `{{tourscript}}` floating to the right? I don’t
   need to know what the scrubbed out text to the left is but what’s the context
   of it?
 * Also, can you confirm which theme you’re using?
 *  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/#post-13815312)
 * Context: grid with two containers, side by side, 1st container contains paragraph(
   blocked out), 2nd container contains custom html box (previously paragraph)
 * To eliminate the possibility of the theme being the cause, I deactivated gp-premium
   plugin and generatepress theme and installed wordpress default theme twentytwenty.
 * same error.
 * > [View post on imgur.com](https://imgur.com/ZVTT71T)
    -  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/#post-13816036)
 * Which block are you using for the grid? I’m wondering, if it’s from a third party
   plugin, if that’s the issue.
 * Can you try disabling all plugins other than Code Embed, add a paragraph to the
   page and add `{{tourscript}}` to it, to see if that works?
 *  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/#post-13816336)
 * All plugins except yours turned off (deactivated)
    [https://pastebin.com/4gZaSk8w](https://pastebin.com/4gZaSk8w)
 * > [View post on imgur.com](https://imgur.com/YdyA82w)
 * plugin not working. :-/
 * yes, I did db repair / optimize and flushed cache…
 * The plugin just is not working
    -  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/#post-13816414)
 * And which theme are you using, here?
 * Are you sure you added that embed code into a paragraph block only, in your screenshot,
   it’s still showing it within a grid?
 *  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/#post-13817720)
 * Actually you are right about that… forgot that step.. so I went back and added
   a new paragraph at the bottom of the page…
 * > [View post on imgur.com](https://imgur.com/HZBEovI)
 * Same error,
 * Then, I “upped the ante” created a whole new, empty, page.. and created a new
   customized field (same name & same script)
 * > [View post on imgur.com](https://imgur.com/sCvWdJh)
 * > [View post on imgur.com](https://imgur.com/XoYV0q2)
 * script did not work.
 * I really don’t think the problem is a conflict with another plugin or theme at
   this point. :-/
 *  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/#post-13817904)
 * No, it doesn’t look like it.
 * Right, can you go to Settings -> Code Embed and show me a screenshot of the resulting
   settings screen?

Viewing 15 replies - 1 through 15 (of 19 total)

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

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