• Resolved michellezymbit

    (@michellezymbit)


    Hi there,

    I copied a snippet from Segment into the following format:

    
    
    add_action( 'wp_head', function () { ?>
    <script>
    
    <code here>
    
    </script>
    <?php } );

    I also tried including <style> before <script> and </style> after </script>. There aren’t any errors, but the snippet is not running. Any ideas? Thanks!

The topic ‘Snippet not working’ is closed to new replies.