• Resolved dragonsway76

    (@dragonsway76)


    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)
  • Thread Starter dragonsway76

    (@dragonsway76)

    Here you go:

    View post on imgur.com

    Plugin Author David Artiss

    (@dartiss)

    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

    (@dragonsway76)

    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 4 years, 3 months ago by dragonsway76.
    Plugin Author David Artiss

    (@dartiss)

    Ah, no worries at all – I’m glad it’s fixed.

    Happy holidays!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Embed Code Not Being Recognized’ is closed to new replies.