Use of Javascript with Dojo/Dijit on a WordPress page

You’d be much better off creating a custom page template, pasting your HTML into the file, then simply attaching the template to a page in the admin.

WordPress applies a lot of filtering on post/page content, and it’s probably wreaking havoc with your code (not to mention you’ve got things there that belong in the <head />).

UPDATE: Create a PHP file in your theme folder (name it template-something.php);

<?php
/*
Template Name: My Template Something
*/
?>

<!-- any PHP & HTML goes here!! -->
<!-- Note: Should be a complete HTML document if not calling get_header() -->

Leave a Comment