• Hi there!

    I’m trying to embed an html/javascript application into my website.
    I do this my first time and bought an with a bit of description how to do it.
    I thought it’s easier but I don’t get it to work.

    That’s the tutorial which comes with the app:
    https://support.vebto.com/help-center/articles/10/13/50/getting-started

    What i did to embed it was creating a new plugin folder in FDP-Manager. And put all the Plugin-Files in it, like described.
    And made an .php file, in which I defined a shortcode, so i can place the app wherever i want on my webpage.
    Underneath i put the code, which they provide for embeding the plugin.
    My code ist:

    <script>
    <?php
    /**
    * Plugin Name: My_first_embed
    * Plugin URI: www.my_first_embed.doesntmatter
    * Description: My_first_embed
    * Version: 1.0
    * Author: Me
    * Author URI: 
    **/
    ?>
    add_shortcode( 'shortcode_name', function () {
    
    	$out = '<p>[editor]</p>';
    
    	return $out;
    } );
    add_action( 'wp_head', function () { ?>
    
    <html>
        <head>
            <link rel="stylesheet" href="pixie/styles.min.css">
        </head>
        <body>
            <pixie-editor></pixie-editor>
        ​
            <script src="pixie/scripts.min.js"></script>
        ​
            <script>
                var pixie = new Pixie({
                    onLoad: function() {
                        console.log('Pixie is ready');
                    }
                });
            </script>
        </body>
     </html>

    First the plugin worked, but it was not loading, than i changed the code to, because i thought that it should be enough… but id didn’t woked either:

    <pixie-editor></pixie-editor>
        ​
            <script src="pixie/scripts.min.js"></script>
        ​
            <script>
                var pixie = new Pixie({
                    onLoad: function() {
                        console.log('Pixie is ready');
                    }
                });
            </script>​

    So any suggestions? 🙂
    i appreciate every contribution!

    thank you
    cheers
    Huronsen

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Embed Html5 App into wordpress’ is closed to new replies.